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
常顺宇
OpenXG-RAN
Commits
0e8acc02
Commit
0e8acc02
authored
Oct 14, 2014
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5883
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
0c5b5f8d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
5 deletions
+77
-5
openair2/RRC/LITE/MESSAGES/asn1_msg.c
openair2/RRC/LITE/MESSAGES/asn1_msg.c
+34
-0
openair2/RRC/LITE/MESSAGES/asn1_msg.h
openair2/RRC/LITE/MESSAGES/asn1_msg.h
+10
-0
openair2/RRC/LITE/defs.h
openair2/RRC/LITE/defs.h
+6
-0
openair2/RRC/LITE/rrc_eNB.c
openair2/RRC/LITE/rrc_eNB.c
+27
-5
No files found.
openair2/RRC/LITE/MESSAGES/asn1_msg.c
View file @
0e8acc02
...
...
@@ -1794,8 +1794,42 @@ uint16_t do_RRCConnectionReconfiguration(uint8_t Mod
return
((
enc_rval
.
encoded
+
7
)
/
8
);
}
uint8_t
do_RRCConnectionRelease
(
uint8_t
Mod_id
,
uint8_t
*
buffer
,
uint8_t
Transaction_id
)
{
asn_enc_rval_t
enc_rval
;
DL_DCCH_Message_t
dl_dcch_msg
;
RRCConnectionRelease_t
*
rrcConnectionRelease
;
memset
(
&
dl_dcch_msg
,
0
,
sizeof
(
DL_DCCH_Message_t
));
dl_dcch_msg
.
message
.
present
=
DL_DCCH_MessageType_PR_c1
;
dl_dcch_msg
.
message
.
choice
.
c1
.
present
=
DL_DCCH_MessageType__c1_PR_rrcConnectionReconfiguration
;
rrcConnectionRelease
=
&
dl_dcch_msg
.
message
.
choice
.
c1
.
choice
.
rrcConnectionRelease
;
// RRCConnectionRelease
rrcConnectionRelease
->
rrc_TransactionIdentifier
=
Transaction_id
;
rrcConnectionRelease
->
criticalExtensions
.
present
=
RRCConnectionRelease__criticalExtensions_PR_c1
;
rrcConnectionRelease
->
criticalExtensions
.
choice
.
c1
.
present
=
RRCConnectionRelease__criticalExtensions__c1_PR_rrcConnectionRelease_r8
;
rrcConnectionRelease
->
criticalExtensions
.
choice
.
c1
.
choice
.
rrcConnectionRelease_r8
.
releaseCause
=
ReleaseCause_other
;
rrcConnectionRelease
->
criticalExtensions
.
choice
.
c1
.
choice
.
rrcConnectionRelease_r8
.
redirectedCarrierInfo
=
NULL
;
rrcConnectionRelease
->
criticalExtensions
.
choice
.
c1
.
choice
.
rrcConnectionRelease_r8
.
idleModeMobilityControlInfo
=
NULL
;
rrcConnectionRelease
->
criticalExtensions
.
choice
.
c1
.
choice
.
rrcConnectionRelease_r8
.
nonCriticalExtension
=
CALLOC
(
1
,
sizeof
(
*
rrcConnectionRelease
->
criticalExtensions
.
choice
.
c1
.
choice
.
rrcConnectionRelease_r8
.
nonCriticalExtension
));
enc_rval
=
uper_encode_to_buffer
(
&
asn_DEF_DL_DCCH_Message
,
(
void
*
)
&
dl_dcch_msg
,
buffer
,
RRC_BUF_SIZE
);
}
uint8_t
TMGI
[
5
]
=
{
4
,
3
,
2
,
1
,
0
};
//TMGI is a string of octet, ref. TS 24.008 fig. 10.5.4a
#ifdef Rel10
uint8_t
do_MBSFNAreaConfig
(
uint8_t
Mod_id
,
LTE_DL_FRAME_PARMS
*
frame_parms
,
...
...
openair2/RRC/LITE/MESSAGES/asn1_msg.h
View file @
0e8acc02
...
...
@@ -196,6 +196,16 @@ uint16_t do_RRCConnectionReconfiguration(uint8_t Mod
#endif
);
/**
\brief Generate an RRCConnectionRequest UL-CCCH-Message (UE) based on random string or S-TMSI. This
routine only generates an mo-data establishment cause.
@param Mod_id Module ID of eNB
@param buffer Pointer to PER-encoded ASN.1 description of UL-DCCH-Message PDU
@param transaction_id Transaction index
@returns Size of encoded bit stream in bytes*/
uint8_t
do_RRCConnectionRelease
(
uint8_t
Mod_id
,
uint8_t
*
buffer
,
int
Transaction_id
);
/***
* \brief Generate an MCCH-Message (eNB). This routine configures MBSFNAreaConfiguration (PMCH-InfoList and Subframe Allocation for MBMS data)
* @param buffer Pointer to PER-encoded ASN.1 description of MCCH-Message PDU
...
...
openair2/RRC/LITE/defs.h
View file @
0e8acc02
...
...
@@ -604,6 +604,12 @@ void rrc_eNB_process_RRCConnectionSetupComplete(module_id_t module_idP, frame_t
\param rrcConnectionReconfigurationComplete Pointer to RRCConnectionReconfigurationComplete message*/
void
rrc_eNB_process_RRCConnectionReconfigurationComplete
(
module_id_t
module_idP
,
frame_t
frameP
,
module_id_t
ue_module_idP
,
RRCConnectionReconfigurationComplete_r8_IEs_t
*
rrcConnectionReconfigurationComplete
);
/**\brief Generate the RRCConnectionRelease
\param module_idP Instance ID for eNB
\param frame Frame index
\param ue_module_idP Index of UE receiving the message*/
void
rrc_eNB_generate_RRCConnectionRelease
(
module_id_t
module_idP
,
frame_t
frameP
,
ue_id_t
ue_idP
);
#if defined(ENABLE_ITTI)
/**\brief RRC eNB task.
\param void *args_p Pointer on arguments to start the task. */
...
...
openair2/RRC/LITE/rrc_eNB.c
View file @
0e8acc02
...
...
@@ -618,6 +618,28 @@ void rrc_eNB_generate_UECapabilityEnquiry(
}
void
rrc_eNB_generate_RRCConnectionRelease
(
module_id_t
enb_mod_idP
,
frame_t
frameP
,
ue_id_t
ue_idP
)
{
uint8_t
buffer
[
RRC_BUF_SIZE
];
uint16_t
size
;
memset
(
buffer
,
0
,
RRC_BUF_SIZE
);
size
=
do_RRCConnectionRelease
(
enb_mod_idP
,
buffer
,
rrc_eNB_get_next_transaction_identifier
(
enb_mod_idP
));
LOG_I
(
RRC
,
"[eNB %d] Frame %d Logical Channel DL-DCCH, Generate RRCConnectionRelease (bytes %d, UE id %d)
\n
"
,
enb_mod_idP
,
frameP
,
size
,
ue_idP
);
LOG_D
(
RRC
,
"[FRAME %05d][RRC_eNB][MOD %u/%u][][--- PDCP_DATA_REQ/%d Bytes (rrcConnectionRelease to UE %d MUI %d) --->][PDCP][MOD %u/%u][RB %u]
\n
"
,
frameP
,
enb_mod_idP
,
ue_idP
,
size
,
ue_idP
,
rrc_eNB_mui
,
enb_mod_idP
,
ue_idP
,
DCCH
);
//rrc_rlc_data_req(enb_mod_idP,frameP, 1,(ue_idP*NB_RB_MAX)+DCCH,rrc_eNB_mui++,0,size,(char*)buffer);
pdcp_rrc_data_req
(
enb_mod_idP
,
ue_idP
,
frameP
,
1
,
DCCH
,
rrc_eNB_mui
++
,
0
,
size
,
buffer
,
1
);
}
/*------------------------------------------------------------------------------*/
static
void
rrc_eNB_generate_defaultRRCConnectionReconfiguration
(
module_id_t
enb_mod_idP
,
...
...
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