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
d86f7060
Commit
d86f7060
authored
May 22, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
L3 RRC/NAS developments
parent
838a734c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
9 deletions
+19
-9
src/ue/nts.hpp
src/ue/nts.hpp
+5
-1
src/ue/rls/task.cpp
src/ue/rls/task.cpp
+3
-1
src/ue/rrc/connection.cpp
src/ue/rrc/connection.cpp
+6
-0
src/ue/rrc/sap.cpp
src/ue/rrc/sap.cpp
+4
-0
src/ue/rrc/task.cpp
src/ue/rrc/task.cpp
+0
-6
src/ue/rrc/task.hpp
src/ue/rrc/task.hpp
+1
-1
No files found.
src/ue/nts.hpp
View file @
d86f7060
...
...
@@ -141,7 +141,8 @@ struct NwUeRlsToRrc : NtsMessage
enum
PR
{
DOWNLINK_RRC_DELIVERY
,
SIGNAL_CHANGED
SIGNAL_CHANGED
,
RADIO_LINK_FAILURE
}
present
;
// DOWNLINK_RRC_DELIVERY
...
...
@@ -155,6 +156,9 @@ struct NwUeRlsToRrc : NtsMessage
// SIGNAL_CHANGED
int
dbm
{};
// RADIO_LINK_FAILURE
rls
::
ERlfCause
rlfCause
{};
explicit
NwUeRlsToRrc
(
PR
present
)
:
NtsMessage
(
NtsMessageType
::
UE_RLS_TO_RRC
),
present
(
present
)
{
}
...
...
src/ue/rls/task.cpp
View file @
d86f7060
...
...
@@ -66,7 +66,9 @@ void UeRlsTask::onLoop()
break
;
}
case
NwUeRlsToRls
:
:
RADIO_LINK_FAILURE
:
{
m_logger
->
debug
(
"radio link failure [%d]"
,
(
int
)
w
->
rlfCause
);
auto
*
m
=
new
NwUeRlsToRrc
(
NwUeRlsToRrc
::
RADIO_LINK_FAILURE
);
m
->
rlfCause
=
w
->
rlfCause
;
m_base
->
rrcTask
->
push
(
m
);
break
;
}
case
NwUeRlsToRls
:
:
TRANSMISSION_FAILURE
:
{
...
...
src/ue/rrc/connection.cpp
View file @
d86f7060
...
...
@@ -107,4 +107,10 @@ void UeRrcTask::receiveRrcRelease(const ASN_RRC_RRCRelease &msg)
m_base
->
nasTask
->
push
(
new
NwUeRrcToNas
(
NwUeRrcToNas
::
RRC_CONNECTION_RELEASE
));
}
void
UeRrcTask
::
handleRadioLinkFailure
(
rls
::
ERlfCause
cause
)
{
m_state
=
ERrcState
::
RRC_IDLE
;
m_base
->
nasTask
->
push
(
new
NwUeRrcToNas
(
NwUeRrcToNas
::
RADIO_LINK_FAILURE
));
}
}
// namespace nr::ue
src/ue/rrc/sap.cpp
View file @
d86f7060
...
...
@@ -27,6 +27,10 @@ void UeRrcTask::handleRlsSapMessage(NwUeRlsToRrc &msg)
handleDownlinkRrc
(
msg
.
cellId
,
msg
.
channel
,
msg
.
pdu
);
break
;
}
case
NwUeRlsToRrc
:
:
RADIO_LINK_FAILURE
:
{
handleRadioLinkFailure
(
msg
.
rlfCause
);
break
;
}
}
}
...
...
src/ue/rrc/task.cpp
View file @
d86f7060
...
...
@@ -87,10 +87,4 @@ void UeRrcTask::onLoop()
delete
msg
;
}
void
UeRrcTask
::
handleRadioLinkFailure
()
{
m_state
=
ERrcState
::
RRC_IDLE
;
m_base
->
nasTask
->
push
(
new
NwUeRrcToNas
(
NwUeRrcToNas
::
RADIO_LINK_FAILURE
));
}
}
// namespace nr::ue
\ No newline at end of file
src/ue/rrc/task.hpp
View file @
d86f7060
...
...
@@ -75,7 +75,6 @@ class UeRrcTask : public NtsTask
private:
/* Handlers */
void
receivePaging
(
const
ASN_RRC_Paging
&
msg
);
void
handleRadioLinkFailure
();
/* RRC Message Transmission and Receive */
void
handleDownlinkRrc
(
int
cellId
,
rrc
::
RrcChannel
channel
,
const
OctetString
&
pdu
);
...
...
@@ -124,6 +123,7 @@ class UeRrcTask : public NtsTask
void
receiveRrcSetup
(
int
cellId
,
const
ASN_RRC_RRCSetup
&
msg
);
void
receiveRrcReject
(
int
cellId
,
const
ASN_RRC_RRCReject
&
msg
);
void
receiveRrcRelease
(
const
ASN_RRC_RRCRelease
&
msg
);
void
handleRadioLinkFailure
(
rls
::
ERlfCause
cause
);
};
...
...
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