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
canghaiwuhen
OpenXG-RAN
Commits
7b655498
Commit
7b655498
authored
Aug 26, 2017
by
Matthieu Kanj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renaming functions in file :openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.c
parent
c5f26acd
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
240 additions
and
241 deletions
+240
-241
openair2/RRC/LITE/L2_interface_NB_IoT.c
openair2/RRC/LITE/L2_interface_NB_IoT.c
+15
-15
openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.c
openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.c
+124
-124
openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.h
openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.h
+25
-26
openair2/RRC/LITE/defs_NB_IoT.h
openair2/RRC/LITE/defs_NB_IoT.h
+19
-19
openair2/RRC/LITE/rrc_eNB_NB_IoT.c
openair2/RRC/LITE/rrc_eNB_NB_IoT.c
+57
-57
No files found.
openair2/RRC/LITE/L2_interface_NB_IoT.c
View file @
7b655498
...
...
@@ -1136,7 +1136,7 @@ int8_t mac_rrc_data_req_eNB_NB_IoT(
}
memcpy
(
&
buffer_pP
[
0
],
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
MIB_NB
,
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
MIB_NB
_IoT
,
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_MIB_NB_IoT
);
//XXX RRC_MAC_BCCH_DATA_REQ message not implemented in MAC layer (eNB_scheduler.c under ITTI)
...
...
@@ -1169,14 +1169,14 @@ int8_t mac_rrc_data_req_eNB_NB_IoT(
/*check if SIBs are initialized*/
//FIXME to be check when both are initialize and if make sense to have it
if
(
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB1_NB
==
255
)
{
LOG_E
(
RRC
,
"[eNB %d] MAC Request for SIB1-NB and SIB1-NB not initialized
\n
"
,
Mod_idP
);
mac_xface
->
macphy_exit
(
"mac_rrc_data_req_eNB_NB_IoT: MAC Request for SIB1-NB
and SIB1-NB
not initialized"
);
if
(
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB1_NB
_IoT
==
255
)
{
LOG_E
(
RRC
,
"[eNB %d] MAC Request for SIB1-NB and SIB1-NB
_IoT
not initialized
\n
"
,
Mod_idP
);
mac_xface
->
macphy_exit
(
"mac_rrc_data_req_eNB_NB_IoT: MAC Request for SIB1-NB
_IoT and SIB1-NB_IoT
not initialized"
);
}
if
(
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB23_NB
==
255
)
{
LOG_E
(
RRC
,
"[eNB %d] MAC Request for SIB23-NB and SIB23-NB not initialized
\n
"
,
Mod_idP
);
mac_xface
->
macphy_exit
(
"mac_rrc_data_req_eNB_NB_IoT: MAC Request for SIB23-NB
and SIB23-NB
not initialized"
);
if
(
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB23_NB
_IoT
==
255
)
{
LOG_E
(
RRC
,
"[eNB %d] MAC Request for SIB23-NB and SIB23-NB
_IoT
not initialized
\n
"
,
Mod_idP
);
mac_xface
->
macphy_exit
(
"mac_rrc_data_req_eNB_NB_IoT: MAC Request for SIB23-NB
_IoT and SIB23-NB_IoT
not initialized"
);
}
...
...
@@ -1186,8 +1186,8 @@ int8_t mac_rrc_data_req_eNB_NB_IoT(
if
(
subframeP
==
4
&&
is_SIB1_start_NB_IoT
(
frameP
,
schedulingInfoSIB1
,
physCellId
)
!=
-
1
){
memcpy
(
&
buffer_pP
[
0
],
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
SIB1_NB
,
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB1_NB
);
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
SIB1_NB
_IoT
,
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB1_NB
_IoT
);
//XXX RRC_MAC_BCCH_DATA_REQ message not implemented in MAC layer (eNB_scheduler.c under ITTI)
...
...
@@ -1195,14 +1195,14 @@ int8_t mac_rrc_data_req_eNB_NB_IoT(
#ifdef DEBUG_RRC
LOG_T
(
RRC
,
"[eNB %d] Frame %d : BCCH request => SIB1_NB
\n
"
,
Mod_idP
,
frameP
);
for
(
i
=
0
;
i
<
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB1_NB
;
i
++
)
{
for
(
i
=
0
;
i
<
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB1_NB
_IoT
;
i
++
)
{
LOG_T
(
RRC
,
"%x."
,
buffer_pP
[
i
]);
}
LOG_T
(
RRC
,
"
\n
"
);
#endif
return
(
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB1_NB
);
return
(
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB1_NB
_IoT
);
}
//check for SIB23-Transmission
...
...
@@ -1216,20 +1216,20 @@ int8_t mac_rrc_data_req_eNB_NB_IoT(
{
memcpy
(
&
buffer_pP
[
0
],
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
SIB23_NB
,
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB23_NB
);
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
SIB23_NB
_IoT
,
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB23_NB
_IoT
);
#ifdef DEBUG_RRC
LOG_T
(
RRC
,
"[eNB %d] Frame %d BCCH request => SIB 2-3
\n
"
,
Mod_idP
,
frameP
);
for
(
i
=
0
;
i
<
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB23_NB
;
i
++
)
{
for
(
i
=
0
;
i
<
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB23_NB
_IoT
;
i
++
)
{
LOG_T
(
RRC
,
"%x."
,
buffer_pP
[
i
]);
}
LOG_T
(
RRC
,
"
\n
"
);
#endif
return
(
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB23_NB
);
return
(
eNB_rrc_inst_NB_IoT
[
Mod_idP
].
carrier
[
CC_id
].
sizeof_SIB23_NB
_IoT
);
}
}
return
(
0
);
...
...
openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.c
View file @
7b655498
This diff is collapsed.
Click to expand it.
openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.h
View file @
7b655498
...
...
@@ -76,11 +76,12 @@ uint8_t do_MIB_NB_IoT(
@param configuration Pointer Configuration Request structure
@return size of encoded bit stream in bytes*/
uint8_t
do_SIB1_NB
(
uint8_t
Mod_id
,
int
CC_id
,
rrc_eNB_carrier_data_NB_IoT_t
*
carrier
,
RrcConfigurationReq
*
configuration
,
uint32_t
frame
);
uint8_t
do_SIB1_NB_IoT
(
uint8_t
Mod_id
,
int
CC_id
,
rrc_eNB_carrier_data_NB_IoT_t
*
carrier
,
RrcConfigurationReq
*
configuration
,
uint32_t
frame
);
/**
\brief Generate a default configuration for SIB2/SIB3-NB in one System Information PDU (eNB).
...
...
@@ -91,11 +92,11 @@ uint8_t do_SIB1_NB(uint8_t Mod_id, int CC_id,
@param sib3_NB Pointer (returned) to sib3_NB component withing SI-NB PDU
@return size of encoded bit stream in bytes*/
uint8_t
do_SIB23_NB
(
uint8_t
Mod_id
,
int
CC_id
,
rrc_eNB_carrier_data_NB_IoT_t
*
carrier
,
RrcConfigurationReq
*
configuration
);
uint8_t
do_SIB23_NB
_IoT
(
uint8_t
Mod_id
,
int
CC_id
,
rrc_eNB_carrier_data_NB_IoT_t
*
carrier
,
RrcConfigurationReq
*
configuration
);
/**(UE-SIDE)
\brief Generate an RRCConnectionRequest-NB UL-CCCH-Message (UE) based on random string or S-TMSI. This
...
...
@@ -105,7 +106,7 @@ routine only generates an mo-data establishment cause.
@param Mod_id
@returns Size of encoded bit stream in bytes*/
uint8_t
do_RRCConnectionRequest_NB
(
uint8_t
Mod_id
,
uint8_t
*
buffer
,
uint8_t
*
rv
);
uint8_t
do_RRCConnectionRequest_NB
_IoT
(
uint8_t
Mod_id
,
uint8_t
*
buffer
,
uint8_t
*
rv
);
/**(UE -SIDE)
...
...
@@ -117,8 +118,8 @@ uint8_t do_RRCConnectionRequest_NB(uint8_t Mod_id, uint8_t *buffer,uint8_t *rv);
@param buffer Pointer to PER-encoded ASN.1 description of UL-DCCH-Message PDU
@returns Size of encoded bit stream in bytes*/
uint8_t
do_RRCConnectionSetupComplete_NB
(
uint8_t
Mod_id
,
uint8_t
*
buffer
,
const
uint8_t
Transaction_id
,
const
int
dedicatedInfoNASLength
,
const
char
*
dedicatedInfoNAS
);
uint8_t
do_RRCConnectionSetupComplete_NB
_IoT
(
uint8_t
Mod_id
,
uint8_t
*
buffer
,
const
uint8_t
Transaction_id
,
const
int
dedicatedInfoNASLength
,
const
char
*
dedicatedInfoNAS
);
/** (UE-SIDE)
\brief Generate an RRCConnectionReconfigurationComplete-NB UL-DCCH-Message (UE)
...
...
@@ -127,8 +128,7 @@ uint8_t do_RRCConnectionSetupComplete_NB(uint8_t Mod_id, uint8_t* buffer, const
@param Transaction_id
@returns Size of encoded bit stream in bytes*/
uint8_t
do_RRCConnectionReconfigurationComplete_NB
(
uint8_t
do_RRCConnectionReconfigurationComplete_NB_IoT
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
uint8_t
*
buffer
,
const
uint8_t
Transaction_id
...
...
@@ -148,8 +148,7 @@ PhysicalConfigDedicated-NB IEs.
@param physicalConfigDedicated_NB Pointer (returned) to PhysicalConfigDedicated-NB IE for this UE
@returns Size of encoded bit stream in bytes*/
uint8_t
do_RRCConnectionSetup_NB
(
uint8_t
do_RRCConnectionSetup_NB_IoT
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
rrc_eNB_ue_context_NB_IoT_t
*
const
ue_context_pP
,
int
CC_id
,
...
...
@@ -179,7 +178,7 @@ do_RRCConnectionSetup_NB(
@returns Size of encoded bit stream in bytes*/
uint16_t
do_RRCConnectionReconfiguration_NB
(
do_RRCConnectionReconfiguration_NB
_IoT
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
uint8_t
*
buffer
,
uint8_t
Transaction_id
,
...
...
@@ -200,7 +199,7 @@ do_RRCConnectionReconfiguration_NB(
@param integrityProtAlgorithm
*/
uint8_t
do_SecurityModeCommand_NB
(
uint8_t
do_SecurityModeCommand_NB
_IoT
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
uint8_t
*
const
buffer
,
const
uint8_t
Transaction_id
,
...
...
@@ -215,7 +214,7 @@ uint8_t do_SecurityModeCommand_NB(
@param Transaction_id Transaction_ID for this message
*/
uint8_t
do_UECapabilityEnquiry_NB
(
uint8_t
do_UECapabilityEnquiry_NB
_IoT
(
const
protocol_ctxt_t
*
const
ctxt_pP
,
uint8_t
*
const
buffer
,
const
uint8_t
Transaction_id
...
...
@@ -230,7 +229,7 @@ uint8_t do_UECapabilityEnquiry_NB(
@returns Size of encoded bit stream in bytes*/
uint8_t
do_RRCConnectionReestablishmentReject_NB
(
do_RRCConnectionReestablishmentReject_NB
_IoT
(
uint8_t
Mod_id
,
uint8_t
*
const
buffer
);
...
...
@@ -241,7 +240,7 @@ do_RRCConnectionReestablishmentReject_NB(
@param buffer Pointer to PER-encoded ASN.1 description of DL-CCCH-Message PDU
@returns Size of encoded bit stream in bytes*/
uint8_t
do_RRCConnectionReject_NB
(
do_RRCConnectionReject_NB
_IoT
(
uint8_t
Mod_id
,
uint8_t
*
const
buffer
);
...
...
@@ -253,10 +252,10 @@ do_RRCConnectionReject_NB(
@param transaction_id Transaction index
@returns Size of encoded bit stream in bytes*/
uint8_t
do_RRCConnectionRelease_NB
(
uint8_t
Mod_id
,
uint8_t
*
buffer
,
int
Transaction_id
);
uint8_t
do_RRCConnectionRelease_NB
_IoT
(
uint8_t
Mod_id
,
uint8_t
*
buffer
,
int
Transaction_id
);
uint8_t
do_DLInformationTransfer_NB
(
uint8_t
do_DLInformationTransfer_NB
_IoT
(
uint8_t
Mod_id
,
uint8_t
**
buffer
,
uint8_t
transaction_id
,
...
...
@@ -275,7 +274,7 @@ uint8_t do_DLInformationTransfer_NB(
*
*/
uint8_t
do_RRCConnectionReestablishment_NB
(
uint8_t
do_RRCConnectionReestablishment_NB
_IoT
(
uint8_t
Mod_id
,
uint8_t
*
const
buffer
,
const
uint8_t
Transaction_id
,
...
...
@@ -290,4 +289,4 @@ uint8_t do_RRCConnectionReestablishment_NB(
@param transaction_id Transaction index
@returns Size of encoded bit stream in bytes*/
uint8_t
do_RRCConnectionRelease_NB
(
uint8_t
Mod_id
,
uint8_t
*
buffer
,
int
Transaction_id
);
//uint8_t do_RRCConnectionRelease_NB_IoT
(uint8_t Mod_id, uint8_t *buffer,int Transaction_id);
openair2/RRC/LITE/defs_NB_IoT.h
View file @
7b655498
...
...
@@ -459,24 +459,24 @@ typedef struct rrc_eNB_ue_context_NB_IoT_s {
typedef
struct
{
// buffer that contains the encoded messages
uint8_t
*
MIB_NB
;
uint8_t
*
MIB_NB
_IoT
;
uint8_t
sizeof_MIB_NB_IoT
;
uint8_t
*
SIB1_NB
;
uint8_t
sizeof_SIB1_NB
;
uint8_t
*
SIB23_NB
;
uint8_t
sizeof_SIB23_NB
;
uint8_t
*
SIB1_NB
_IoT
;
uint8_t
sizeof_SIB1_NB
_IoT
;
uint8_t
*
SIB23_NB
_IoT
;
uint8_t
sizeof_SIB23_NB
_IoT
;
//not actually implemented in OAI
uint8_t
*
SIB4_NB
;
uint8_t
sizeof_SIB4_NB
;
uint8_t
*
SIB5_NB
;
uint8_t
sizeof_SIB5_NB
;
uint8_t
*
SIB14_NB
;
uint8_t
sizeof_SIB14_NB
;
uint8_t
*
SIB16_NB
;
uint8_t
sizeof_SIB16_NB
;
uint8_t
*
SIB4_NB
_IoT
;
uint8_t
sizeof_SIB4_NB
_IoT
;
uint8_t
*
SIB5_NB
_IoT
;
uint8_t
sizeof_SIB5_NB
_IoT
;
uint8_t
*
SIB14_NB
_IoT
;
uint8_t
sizeof_SIB14_NB
_IoT
;
uint8_t
*
SIB16_NB
_IoT
;
uint8_t
sizeof_SIB16_NB
_IoT
;
//TS 36.331 V14.2.1
// uint8_t *SIB15_NB;
...
...
@@ -501,13 +501,13 @@ typedef struct {
BCCH_DL_SCH_Message_NB_t
systemInformation_NB_IoT
;
//SI
SystemInformationBlockType1_NB_t
*
sib1_NB_IoT
;
SystemInformationBlockType2_NB_r13_t
*
sib2_NB
;
SystemInformationBlockType3_NB_r13_t
*
sib3_NB
;
SystemInformationBlockType2_NB_r13_t
*
sib2_NB
_IoT
;
SystemInformationBlockType3_NB_r13_t
*
sib3_NB
_IoT
;
//not implemented yet
SystemInformationBlockType4_NB_r13_t
*
sib4_NB
;
SystemInformationBlockType5_NB_r13_t
*
sib5_NB
;
SystemInformationBlockType14_NB_r13_t
*
sib14_NB
;
SystemInformationBlockType16_NB_r13_t
*
sib16_NB
;
SystemInformationBlockType4_NB_r13_t
*
sib4_NB
_IoT
;
SystemInformationBlockType5_NB_r13_t
*
sib5_NB
_IoT
;
SystemInformationBlockType14_NB_r13_t
*
sib14_NB
_IoT
;
SystemInformationBlockType16_NB_r13_t
*
sib16_NB
_IoT
;
SRB_INFO_NB_IoT
SI
;
...
...
openair2/RRC/LITE/rrc_eNB_NB_IoT.c
View file @
7b655498
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