Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
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
Libraries
UERANSIM
Commits
6af9ea83
Commit
6af9ea83
authored
Apr 04, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UE SRA dev.
parent
72059c9f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
41 deletions
+22
-41
src/ue/sra/connection.cpp
src/ue/sra/connection.cpp
+0
-39
src/ue/sra/measurement.cpp
src/ue/sra/measurement.cpp
+22
-0
src/ue/sra/task.hpp
src/ue/sra/task.hpp
+0
-2
No files found.
src/ue/sra/connection.cpp
deleted
100644 → 0
View file @
72059c9f
//
// This file is a part of UERANSIM open source project.
// Copyright (c) 2021 ALİ GÜNGÖR.
//
// The software and all associated files are licensed under GPL-3.0
// and subject to the terms and conditions defined in LICENSE file.
//
#include "task.hpp"
#include <ue/nts.hpp>
#include <ue/rrc/task.hpp>
#include <utils/common.hpp>
namespace
nr
::
ue
{
void
UeSraTask
::
handleCellSelectionCommand
(
const
GlobalNci
&
cellId
,
bool
isSuitable
)
{
if
(
!
m_activeMeasurements
.
count
(
cellId
))
{
m_logger
->
err
(
"Selected cell is no longer available for camping"
);
return
;
}
auto
&
measurement
=
m_activeMeasurements
[
cellId
];
m_servingCell
=
UeCellInfo
{};
m_servingCell
->
cellId
=
measurement
.
cellId
;
m_servingCell
->
tac
=
measurement
.
tac
;
m_servingCell
->
gnbName
=
measurement
.
gnbName
;
m_servingCell
->
linkIp
=
measurement
.
linkIp
;
m_servingCell
->
cellCategory
=
isSuitable
?
ECellCategory
::
SUITABLE_CELL
:
ECellCategory
::
ACCEPTABLE_CELL
;
auto
*
w
=
new
NwUeSraToRrc
(
NwUeSraToRrc
::
SERVING_CELL_CHANGE
);
w
->
servingCell
=
*
m_servingCell
;
m_base
->
rrcTask
->
push
(
w
);
}
}
// namespace nr::ue
src/ue/sra/measurement.cpp
View file @
6af9ea83
...
...
@@ -75,4 +75,26 @@ void UeSraTask::plmnSearchRequested()
m_base
->
rrcTask
->
push
(
w
);
}
void
UeSraTask
::
handleCellSelectionCommand
(
const
GlobalNci
&
cellId
,
bool
isSuitable
)
{
if
(
!
m_activeMeasurements
.
count
(
cellId
))
{
m_logger
->
err
(
"Selected cell is no longer available for camping"
);
return
;
}
auto
&
measurement
=
m_activeMeasurements
[
cellId
];
m_servingCell
=
UeCellInfo
{};
m_servingCell
->
cellId
=
measurement
.
cellId
;
m_servingCell
->
tac
=
measurement
.
tac
;
m_servingCell
->
gnbName
=
measurement
.
gnbName
;
m_servingCell
->
linkIp
=
measurement
.
linkIp
;
m_servingCell
->
cellCategory
=
isSuitable
?
ECellCategory
::
SUITABLE_CELL
:
ECellCategory
::
ACCEPTABLE_CELL
;
auto
*
w
=
new
NwUeSraToRrc
(
NwUeSraToRrc
::
SERVING_CELL_CHANGE
);
w
->
servingCell
=
*
m_servingCell
;
m_base
->
rrcTask
->
push
(
w
);
}
}
// namespace nr::ue
src/ue/sra/task.hpp
View file @
6af9ea83
...
...
@@ -59,8 +59,6 @@ class UeSraTask : public NtsTask
void
receiveCellInfoResponse
(
const
sra
::
SraCellInfoResponse
&
msg
);
void
onCoverageChange
(
const
std
::
vector
<
GlobalNci
>
&
entered
,
const
std
::
vector
<
GlobalNci
>
&
exited
);
void
plmnSearchRequested
();
private:
/* Connection */
void
handleCellSelectionCommand
(
const
GlobalNci
&
cellId
,
bool
isSuitable
);
};
...
...
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