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
f7e78c3b
Commit
f7e78c3b
authored
Feb 02, 2018
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide the get_NB_IoT_SIB1, but the value of SIB1 should be checked
parent
79c80bc7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.c
openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.c
+14
-1
openair2/RRC/LITE/proto_NB_IoT.h
openair2/RRC/LITE/proto_NB_IoT.h
+2
-0
openair2/RRC/LITE/rrc_eNB.c
openair2/RRC/LITE/rrc_eNB.c
+13
-0
No files found.
openair2/RRC/LITE/MESSAGES/asn1_msg_NB_IoT.c
View file @
f7e78c3b
...
...
@@ -395,16 +395,23 @@ uint8_t do_SIB1_NB_IoT(uint8_t Mod_id, int CC_id,
asn_set_empty
(
&
(
*
sib1_NB_IoT
)
->
systemInfoValueTagList_r13
->
list
);
ASN_SEQUENCE_ADD
(
&
(
*
sib1_NB_IoT
)
->
systemInfoValueTagList_r13
->
list
,
&
systemInfoValueTagSI
);
// To check if the bcch message properly setting
printf
(
"Check value :%d, should be band number
\n
"
,
bcch_message
->
message
.
choice
.
c1
.
choice
.
systemInformationBlockType1_r13
.
freqBandIndicator_r13
);
#ifdef XER_PRINT //generate xml files
xer_fprint
(
stdout
,
&
asn_DEF_BCCH_DL_SCH_Message_NB
,
(
void
*
)
bcch_message
);
#endif
//bcch_message->message.choice.c1.choice.systemInformationBlockType1_r13 = **sib1_NB_IoT;
enc_rval
=
uper_encode_to_buffer
(
&
asn_DEF_BCCH_DL_SCH_Message_NB
,
(
void
*
)
bcch_message
,
carrier
->
SIB1_NB_IoT
,
100
);
printf
(
"In Asn.1 SIB1
\n
"
);
for
(
int
i
=
0
;
i
<
32
;
i
++
)
printf
(
"%x "
,
carrier
->
SIB1_NB_IoT
[
i
]);
printf
(
"
\n
"
);
if
(
enc_rval
.
encoded
>
0
){
LOG_F
(
RRC
,
"ASN1 message encoding failed (%s, %lu)!
\n
"
,
...
...
@@ -687,6 +694,12 @@ uint8_t do_SIB23_NB_IoT(uint8_t Mod_id,
(
void
*
)
bcch_message
,
carrier
->
SIB23_NB_IoT
,
900
);
printf
(
"In Asn.1 SIB23
\n
"
);
for
(
int
i
=
0
;
i
<
32
;
i
++
)
printf
(
"%x "
,
carrier
->
SIB23_NB_IoT
[
i
]);
printf
(
"
\n
"
);
printf
(
"(enc_rval.encoded+7)/8 = %d
\n
"
,(
enc_rval
.
encoded
+
7
)
/
8
);
// AssertFatal (enc_rval.encoded > 0, "ASN1 message encoding failed (%s, %lu)!\n",
// enc_rval.failed_type->name, enc_rval.encoded);
...
...
openair2/RRC/LITE/proto_NB_IoT.h
View file @
f7e78c3b
...
...
@@ -37,6 +37,8 @@
#include "LAYER2/MAC/defs_NB_IoT.h"
/*NOTE: no static function should be declared in this header file (e.g. init_SI_NB)*/
uint8_t
*
get_NB_IoT_SIB1
(
void
);
uint8_t
*
get_NB_IoT_MIB
(
void
);
void
init_testing_NB_IoT
(
uint8_t
Mod_id
,
int
CC_id
,
rrc_eNB_carrier_data_NB_IoT_t
*
carrier
,
RrcConfigurationReq
*
configuration
,
uint32_t
frame
,
uint32_t
hyper_frame
);
...
...
openair2/RRC/LITE/rrc_eNB.c
View file @
f7e78c3b
...
...
@@ -125,6 +125,11 @@ uint8_t *get_NB_IoT_MIB(void)
return
eNB_rrc_inst_NB_IoT
->
carrier
[
0
].
MIB_NB_IoT
;
}
uint8_t
*
get_NB_IoT_SIB1
(
void
)
{
return
eNB_rrc_inst_NB_IoT
->
carrier
[
0
].
SIB1_NB_IoT
;
}
void
init_testing_NB_IoT
(
uint8_t
Mod_id
,
int
CC_id
,
rrc_eNB_carrier_data_NB_IoT_t
*
carrier
,
RrcConfigurationReq
*
configuration
,
uint32_t
frame
,
uint32_t
hyper_frame
)
{
...
...
@@ -187,6 +192,14 @@ void init_testing_NB_IoT(uint8_t Mod_id, int CC_id, rrc_eNB_carrier_data_NB_IoT_
//exit here
}
//dump SIB1_NB_IoT
LOG_I
(
RRC
,
"Dump SIB1 NB-IoT content
\n
"
);
for
(
int
i
=
0
;
i
<
32
;
i
++
)
printf
(
"%02X "
,
carrier
[
CC_id
].
SIB1_NB_IoT
[
i
]);
printf
(
"
\n
"
);
//SIB23_NB_IoT
carrier
[
CC_id
].
SIB23_NB_IoT
=
(
uint8_t
*
)
malloc16
(
64
);
...
...
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