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
946b0635
Commit
946b0635
authored
Jul 23, 2017
by
Matthieu Kanj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing warnings (148 remaining)
parent
858ee3a1
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
35 additions
and
28 deletions
+35
-28
openair1/PHY/INIT/lte_init_nb_iot.c
openair1/PHY/INIT/lte_init_nb_iot.c
+3
-2
openair1/PHY/vars_NB_IoT.h
openair1/PHY/vars_NB_IoT.h
+4
-4
openair1/SCHED/IF_Module_L1_primitives_nb_iot.c
openair1/SCHED/IF_Module_L1_primitives_nb_iot.c
+1
-1
openair1/SCHED/phy_procedures_lte_common_NB_IoT.c
openair1/SCHED/phy_procedures_lte_common_NB_IoT.c
+1
-1
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
+7
-6
openair2/LAYER2/MAC/main_nb_iot.c
openair2/LAYER2/MAC/main_nb_iot.c
+3
-1
openair2/RRC/LITE/L2_interface_nb_iot.c
openair2/RRC/LITE/L2_interface_nb_iot.c
+7
-7
openair2/RRC/LITE/proto_nb_iot.h
openair2/RRC/LITE/proto_nb_iot.h
+8
-2
openair2/RRC/LITE/rrc_common_nb_iot.c
openair2/RRC/LITE/rrc_common_nb_iot.c
+1
-4
No files found.
openair1/PHY/INIT/lte_init_nb_iot.c
View file @
946b0635
...
...
@@ -23,6 +23,7 @@
#include "SCHED/defs.h"
#include "PHY/extern.h"
#include "PHY/extern_NB_IoT.h"
#include "RRC/LITE/proto_nb_iot.h"
#include "SIMULATION/TOOLS/defs.h"
#include "RadioResourceConfigCommonSIB.h"
#include "RadioResourceConfigDedicated.h"
...
...
@@ -78,8 +79,8 @@ void NB_phy_config_mib_eNB(
fp
->
Ncp
=
Ncp
;
fp
->
Ncp_UL
=
Ncp_UL
;
fp
->
nb_antenna_ports_eNB
=
p_eNB
;
//tx antenna port
fp
->
dl_CarrierFreq
=
from_earfcn
(
eutra_band
,
EARFCN
,
0
);
fp
->
ul_CarrierFreq
=
fp
->
dl_CarrierFreq
-
get_uldl_offset
(
eutra_band
);
fp
->
dl_CarrierFreq
=
from_earfcn
_NB_IoT
(
eutra_band
,
EARFCN
,
0
);
fp
->
ul_CarrierFreq
=
fp
->
dl_CarrierFreq
-
get_uldl_offset
_NB_IoT
(
eutra_band
);
fp
->
operating_mode
=
operating_mode
;
//see how are defined by FAPI structure
fp
->
NB_IoT_RB_ID
=
prb_index
;
//XXX to be better understand how should be managed
//fp->nb_rx_antenna_ports_eNB
...
...
openair1/PHY/vars_NB_IoT.h
View file @
946b0635
...
...
@@ -124,10 +124,10 @@ double beta1_dlsch_MI[6][MCS_COUNT] = { {1.1188, 0.3720, 0.3755, 0.9453, 0.5799,
double beta2_dlsch_MI[6][MCS_COUNT] = { {1.1293, 0.3707, 0.3722, 0.9310, 0.5808, 0.5265, 0.5404, 0.5279, 0.5210, 0.5226, 0.6438, 0.5827, 0.4804, 0.4830, 0.3638, 0.4506, 0.4107, 0.2547, 0.2797, 0.2413, 0.3351, 0.2750, 0.2568, 0.2273}, {0.7028, 0.5503, 0.5503, 0.4815, 0.5006, 0.4764, 0.4810, 0.5124, 0.4964, 0.4485, 0.5497, 0.3971, 0.4239, 0.3701, 0.3494, 0.2630, 0.4053, 0.1505, 0.2001,0.2024,0.1788,0.2124,0.2668,1}, {1,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1}, {1,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1},{1.079518113138858, 1.105622953570353, 1.031337449900606, 1.073342032668810, 1.242636589110353, 1.255054927783647, 1.291463834317768, 1.317048698347491, 1.354485054187984, 0.338534029291017, 1.85, 1.79, 1.65, 1.54, 1.46, 1.39, 1.33,1, 1,1,1,1,1,1},{0.6980, 0.4694, 0.5379, 0.5483, 0.4982, 0.4737, 0.4611, 0.5051, 0.5020, 0.4672, 0.4357, 0.3957, 0.4389, 0.4344, 0.3645, 0.3661, 0.3301, 0.2179, 0.1730, 0.2536, 0.2389,0.2884,0.2936,0.2226}};
//real CE MIESM
/
*
/
///////
double beta1_dlsch_MI[6][MCS_COUNT] = { {1.32955, 0.59522, 0.54024, 0.98698, 0.81305, 0.76976, 0.69258, 0.69713, 0.70546, 0.69111, 0.81904, 0.72664, 0.79491, 0.72562, 0.53980, 0.33134, 0.50550, 0.40602,0.40281,0.47012,0.50510,0.23540,0.32045,1}, {0.59632, 1.08475, 1.02431, 1.07020, 0.90170, 0.97719, 0.95464, 0.92764, 0.86721, 0.85986, 0.64558, 0.80631, 0.82673, 0.82888, 0.87122, 0.77245, 0.29771, 0.43477, 0.55321, 0.61027, 0.56111, 0.57292, 0.39737,1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1,1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1,1},{1.808065416202085, 1.754544945430673,1.902272019362616, 1.790054645392961, 1.563204092967629, 1.585258289348813, 1.579349443720310, 1.570650121437345, 1.545055626608596, 1.362229442426877, 1.85, 1.79, 1.65, 1.54, 1.46, 1.39, 1.33, 1,1,1,1,1,1,1},{0.77532, 1.07544, 1.10571, 1.04099, 0.91638, 0.88644, 0.96405, 0.86709, 0.94066, 0.84430, 1.24478, 1.09665, 1.42604, 0.79541, 0.71847, 0.71604, 0.74561, 0.36431, 0.41536, 0.52175, 0.47096, 0.49977, 0.59728,1}};
double beta2_dlsch_MI[6][MCS_COUNT] = { {1.36875, 0.59304, 0.53870, 0.98239, 0.81637, 0.76847, 0.69842, 0.69885, 0.69967, 0.69826, 0.82660, 0.70559, 0.78404, 0.70670, 0.55393, 0.36893, 0.52225, 0.39752, 0.40494, 0.46239, 0.49247,0.26900,0.34504,1}, {0.43775, 0.78208, 0.72875, 0.77458, 0.64485, 0.69174, 0.66097, 0.63289, 0.59652, 0.61175, 0.44551, 0.56047, 0.57314, 0.57553, 0.58849, 0.52159, 0.21241, 0.30139, 0.37373, 0.32029, 0.37067, 0.36706, 0.27118,1}, {1,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1}, {1,1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1},{1.079518113138858, 1.105622953570353, 1.031337449900606, 1.073342032668810, 1.242636589110353, 1.255054927783647, 1.291463834317768, 1.317048698347491, 1.354485054187984, 0.338534029291017, 1.85, 1.79, 1.65, 1.54, 1.46, 1.39, 1.33,1, 1,1,1,1,1,1},{0.54448, 0.73731, 0.79165, 0.74407, 0.68042, 0.64906, 0.71349, 0.62109, 0.65815, 0.60940, 0.90549, 0.78708, 1.03176, 0.58431, 0.53379, 0.51224, 0.52767, 0.26848, 0.29642, 0.36879, 0.34148, 0.35279,0.40633,1}};
*
/
///////
/
//ideal channel estimation values
//double beta1_dlsch[6][MCS_COUNT] = { {2.3814, 0.4956, 0.5273, 1.1708, 0.8014, 0.7889, 0.8111, 0.8139, 0.8124, 0.8479, 1.9280, 1.9664, 2.3857, 2.5147, 2.4511, 3.0158, 2.8643, 5.3013, 5.8594, 6.5372, 7.8073, 7.8030, 7.5295, 7.1320}, {0.5146, 0.5549, 0.7405, 0.6913, 0.7349, 0.7000, 0.7539, 0.7955, 0.8074, 0.7760, 1.8150, 1.6561, 1.9280, 2.3563, 2.6699, 2.3086, 3.1601, 4.5316, 5.2870, 6.0983, 6.5635, 7.7024, 9.9592, 6.6173}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1,1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1}, {1.79358, 1.17908, 2.02600, 1.72040, 1.58618, 1.59039, 1.68111, 1.67062, 1.64911, 1.33274, 4.87800, 3.58797, 3.72338, 5.35700, 2.81752, 1.93472, 2.23259, 1,1,1,1,1,1,1}, {0.4445, 0.5918, 0.7118, 0.7115, 0.7284, 0.7202, 0.7117, 0.8111, 0.8239, 0.7907, 1.8456, 1.8144, 2.3830, 2.6634, 2.6129, 2.8127, 2.7372, 4.9424, 4.8763, 6.8413, 7.1493, 9.4180, 10.1230, 8.9613}};
//double beta2_dlsch[6][MCS_COUNT] = { {2.3639, 0.4952, 0.5207, 1.1572, 0.8026, 0.7864, 0.7996, 0.8034, 0.8200, 0.8367, 1.8701, 1.9212, 2.2947, 2.4472, 2.4091, 2.9479, 2.8973, 5.0591, 5.5134, 6.1483, 7.2166, 7.5177, 7.5704, 7.2248}, {0.5113, 0.5600, 0.7359, 0.6860, 0.7344, 0.6902, 0.7315, 0.7660, 0.7817, 0.7315, 1.7268, 1.5912, 1.8519, 2.2115, 2.4580, 2.1879, 2.9015, 4.1543, 4.6986, 5.3193, 5.6319, 6.5640, 8.2421, 5.6393}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1,1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1}, {0.79479, 0.52872, 0.90005, 0.77170, 0.73220, 0.72060, 0.75433, 0.75451, 0.75989, 0.67655, 1.68525, 1.31100, 1.46573, 1.99843, 1.57293, 1.62852, 2.10636, 1,1,1,1,1,1,1}, {0.4398, 0.5823, 0.7094, 0.7043, 0.7282, 0.7041, 0.6979, 0.7762, 0.7871, 0.7469, 1.7752, 1.7443, 2.2266, 2.4767, 2.4146, 2.6040, 2.5708, 4.4488, 4.4944, 5.9630, 6.3740, 8.1097, 8.4210, 7.8027}};
...
...
@@ -135,11 +135,11 @@ double beta2_dlsch_MI[6][MCS_COUNT] = { {1.36875, 0.59304, 0.53870, 0.98239, 0.8
/////////double beta2_dlsch[6][MCS_COUNT] = { {0.534622, 0.596561, 0.500838, 0.471721, 0.548218, 0.547974, 0.924245, 0.836484, 0.776917, 0.879691, 0.875722, 0.666933, 0.666393, 0.755377, 1.074985, 1.080290, 1.010914, 0.790892, 0.793435, 0.860249, 0.901508, 0.967060, 0.951372, 1.011493, 1.106151, 1.117076, 1.209397, 1.227790}, {0.5113, 0.5600, 0.7359, 0.6860, 0.7344, 0.6902, 0.7315, 0.7660, 0.7817, 0.7315, 1.7268, 1.5912, 1.8519, 2.2115, 2.4580, 2.1879, 2.9015, 4.1543, 4.6986, 5.3193, 5.6319, 6.5640, 8.2421, 5.6393}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1,1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1}, {0.79479, 0.52872, 0.90005, 0.77170, 0.73220, 0.72060, 0.75433, 0.75451, 0.75989, 0.67655, 1.68525, 1.31100, 1.46573, 1.99843, 1.57293, 1.62852, 2.10636, 1,1,1,1,1,1,1}, {0.4398, 0.5823, 0.7094, 0.7043, 0.7282, 0.7041, 0.6979, 0.7762, 0.7871, 0.7469, 1.7752, 1.7443, 2.2266, 2.4767, 2.4146, 2.6040, 2.5708, 4.4488, 4.4944, 5.9630, 6.3740, 8.1097, 8.4210, 7.8027}};
//real channel estimation valus
/
*
/
//
double beta1_dlsch[6][MCS_COUNT] = { {2.50200, 0.84047, 0.78195, 1.37929, 1.16871, 1.11906, 1.06303, 1.07447, 1.11403, 1.09223, 2.82502, 2.87556, 3.51254, 3.62920, 3.53638, 2.35980, 3.74126, 8.66532, 7.31772, 9.86882, 10.64939, 6.75208, 9.50664, 13.63057}, {0.92257, 1, 1.80445, 1.43175, 1.42093, 1.37381, 1.45392, 1.47255, 1.47451, 1.41235, 3.9079, 3.38557, 4.13059, 4.93355, 4.97277, 6.04951, 5.88896, 8.68076, 10.23746, 12.37069, 5.50538, 17.29612, 17.95050, 13.27095}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1,1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1}, {1.79255, 1.88213, 4.44226, 2.25150, 1.93710, 2.18504, 2.57389, 1.94322, 1.78515, 2.09265, 2.37459, 1.74442, 1.74346, 1.19705, 1.56149, 1.59604, 1.6, 1,1,1,1,1,1,1}, {0.93374, 1.40389, 1.36670, 1.38679, 1.35707, 1.26353, 1.32360, 1.40164, 1.51843, 1.34863, 3.45839, 3.13726, 3.94768, 4.21966, 4.60750, 4.97894, 5.40755, 8.12814, 10.59221, 12.96427, 13.37323, 14.27206, 16.61779, 17.19656}};
double beta2_dlsch[6][MCS_COUNT] = { {2.52163, 0.83231, 0.77472, 1.36536, 1.16829, 1.11186, 1.06287, 1.07292, 1.09946, 1.10650, 2.79174, 2.75655, 3.36651, 3.49011, 3.60903, 2.73517, 3.84009, 8.20312, 7.41739, 9.64081, 10.40911, 8.11765, 10.41923, 9.34300}, {0.67252, 0.8600, 1.28633, 1.01624, 1.03066, 0.97590, 1.02560, 1.01840, 1.00547, 0.97093, 2.72573, 2.33283, 2.86181, 3.40452, 3.47957, 4.08916, 3.97628, 6.14541, 7.11017, 8.42369, 4.04812, 11.42082, 11.57171, 9.28462}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1,1}, {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,1}, {0.85784, 0.90361, 2.09766, 1.08385, 0.96300, 1.04432, 1.22763, 0.99249, 0.95544, 1.12333, 1.37924, 1.12913, 1.30644, 1.19253, 1.75488, 2.13813, 2.10636, 1,1,1,1,1,1,1}, {0.66288, 0.96402, 0.98545, 0.99386, 0.99981, 0.92678, 0.98978, 0.99600, 1.05538, 0.97777, 2.52504, 2.29338, 2.89631, 3.10812, 3.41916, 3.58671, 3.84166, 6.05254, 7.45821, 9.15812, 9.66330, 10.17852, 11.50519, 11.16299}};
///
*
///
#ifdef OCP_FRAMEWORK
#include <enums.h>
...
...
openair1/SCHED/IF_Module_L1_primitives_nb_iot.c
View file @
946b0635
...
...
@@ -185,7 +185,7 @@ void schedule_response(Sched_Rsp_t *Sched_INFO)
frame_t
frame
=
Sched_INFO
->
frame
;
sub_frame_t
subframe
=
Sched_INFO
->
subframe
;
// implicite declaration of AssertFatal , this function does not exist in OAI code
AsserFatal
(
proc
->
subframe_tx
!=
subframe
,
"Current subframe %d != NFAPI subframe %d
\n
"
,
proc
->
subframe_tx
,
subframe
);
AsserFatal
(
proc
->
frame_tx
!=
frame
,
"Current sframe %d != NFAPI frame %d
\n
"
,
proc
->
frame_tx
,
frame
);
...
...
openair1/SCHED/phy_procedures_lte_common_NB_IoT.c
View file @
946b0635
...
...
@@ -1002,7 +1002,7 @@ double aggregate_eNB_UE_localization_stats(PHY_VARS_eNB *phy_vars_eNB, int8_t UE
// distance = 10^((Ptx - Prx - A)/10alpha), A is a constance experimentally evaluated
// A includes the rx gain (eNB->rx_total_gain_eNB_dB) and hardware calibration
power_distance = pow(10, ((UE_tx_power_dB - median_power - eNB->rx_total_gain_eNB_dB + 133)/(10.0*alpha)));
/
*
current measurements shows constant UE_timing_offset = 18
/
/
current measurements shows constant UE_timing_offset = 18
and timing_advance_update = 11 at 1m. at 5m, timing_advance_update = 12//
//time_distance = (double) 299792458*(eNB->UE_stats[(uint32_t)UE_id].timing_advance_update)/(sys_bw*1000000);
time_distance = (double) abs(eNB->UE_stats[(uint32_t)UE_id].timing_advance_update - 11) * 4.89;// (3 x 108 x 1 / (15000 x 2048)) / 2 = 4.89 m
...
...
openair1/SCHED/phy_procedures_lte_eNb_nb_iot.c
View file @
946b0635
...
...
@@ -37,7 +37,8 @@
#include "SCHED/extern.h"
#include "PHY/LTE_TRANSPORT/if4_tools.h"
#include "PHY/LTE_TRANSPORT/if5_tools.h"
#include "RRC/LITE/proto_nb_iot.h"
#include "SIMULATION/TOOLS/defs.h"
#ifdef EMOS
#include "SCHED/phy_procedures_emos.h"
#endif
...
...
@@ -615,7 +616,7 @@ void generate_eNB_dlsch_params_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB,eNB_rxtx_proc_t *
void
generate_eNB_ulsch_params_NB_IoT
(
PHY_VARS_eNB_NB_IoT
*
eNB
,
eNB_rxtx_proc_t
*
proc
,
nfapi_hi_dci0_request_pdu_t
*
hi_dci0_pdu
)
{
int
UE_id
=
-
1
;
int
harq_pid
=
0
;
//
int harq_pid = 0;
DCI_CONTENT
*
DCI_Content
;
DCI_Content
=
(
DCI_CONTENT
*
)
malloc
(
sizeof
(
DCI_CONTENT
));
...
...
@@ -1018,10 +1019,10 @@ void phy_procedures_eNB_TX_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB,
if
(
subframe
==
4
&&
eNB
->
ndlsch_SIB1
!=
NULL
&&
eNB
->
ndlsch_SIB1
->
harq_process
->
status
==
ACTIVE
)
{
//check if current frame is for SIB1-NB transmission (if yes get the starting frame of SIB1-NB) and set the flag for the encoding
sib1_startFrame
=
is_SIB1_NB
(
frame
,
(
long
)
eNB
->
ndlsch_SIB1
->
harq_process
->
repetition_number
,
fp
->
Nid_cell
,
eNB
->
ndlsch_SIB1
);
//set the flags
sib1_startFrame
=
is_SIB1_NB
_IoT
(
frame
,
(
long
)
eNB
->
ndlsch_SIB1
->
harq_process
->
repetition_number
,
fp
->
Nid_cell
,
eNB
->
ndlsch_SIB1
);
//set the flags
if
(
sib1_startFrame
!=
-
1
&&
eNB
->
ndlsch_SIB1
->
harq_process
->
pdu
!=
NULL
)
{
...
...
openair2/LAYER2/MAC/main_nb_iot.c
View file @
946b0635
...
...
@@ -34,6 +34,8 @@
#include "defs_nb_iot.h"
#include "proto_nb_iot.h"
#include "extern.h"
#include "RRC/LITE/proto_nb_iot.h"
int
mac_init_global_param_NB
(
void
)
{
...
...
@@ -66,7 +68,7 @@ int mac_init_global_param_NB(void)
// LOG_I(MAC,"[MAIN] RLC interface (mac_rlc_xface) setup and init (maybe no mre used??)\n");
LOG_I
(
MAC
,
"[MAIN] RRC NB-IoT initialization of global params
\n
"
);
rrc_init_global_param_NB
();
rrc_init_global_param_NB
_IoT
();
LOG_I
(
MAC
,
"[MAIN] PDCP layer init
\n
"
);
...
...
openair2/RRC/LITE/L2_interface_nb_iot.c
View file @
946b0635
...
...
@@ -204,7 +204,7 @@ uint32_t to_earfcn(int eutra_bandP,uint32_t dl_CarrierFreq, float m_dl) {
//PROBLEM: for UE category NB1 and NB2 the introduction of the offset (m_dl) may create some problems in the reconstruction of the dl_CarrierFreq
//this function is used in phy_config_mib_NB for getting the DL Carrier Frequency from the EARFCN
uint32_t
from_earfcn
(
int
eutra_bandP
,
uint32_t
dl_earfcn
,
float
m_dl
)
{
uint32_t
from_earfcn
_NB_IoT
(
int
eutra_bandP
,
uint32_t
dl_earfcn
,
float
m_dl
)
{
int
i
;
...
...
@@ -217,7 +217,7 @@ uint32_t from_earfcn(int eutra_bandP,uint32_t dl_earfcn, float m_dl) {
}
int32_t
get_uldl_offset
(
int
eutra_band
)
{
int32_t
get_uldl_offset
_NB_IoT
(
int
eutra_band
)
{
return
(
-
eutra_bandtable
[
eutra_band
].
dl_min
+
eutra_bandtable
[
eutra_band
].
ul_min
);
}
...
...
@@ -738,7 +738,7 @@ int sib1_startFrame_to_array[4] = {0,16,32,48};//TS 36.213 Table 16.4.1.3-4
//New----------------------------------------------------
//return -1 whenever no SIB1-NB transmission occur.
//return sib1_startFrame when transmission occur in the current frame
uint32_t
is_SIB1_NB
(
uint32_t
is_SIB1_NB
_IoT
(
const
frame_t
frameP
,
long
schedulingInfoSIB1
,
//from the mib
int
physCellId
,
//by configuration
...
...
@@ -780,7 +780,7 @@ uint32_t is_SIB1_NB(
if
(
schedulingInfoSIB1
>
11
||
schedulingInfoSIB1
<
0
){
LOG_E
(
RRC
,
"is_SIB1_NB: schedulingInfoSIB1 value not allowed"
);
LOG_E
(
RRC
,
"is_SIB1_NB
_IoT
: schedulingInfoSIB1 value not allowed"
);
return
0
;
}
...
...
@@ -900,7 +900,7 @@ uint32_t is_SIB1_NB(
//New----------------------------------------------------
//Function for check if the current frame is the start of a new SIB1-NB period
uint8_t
is_SIB1_
NB_start
(
uint8_t
is_SIB1_
start_NB_IoT
(
const
frame_t
frameP
,
long
schedulingInfoSIB1
,
//from the mib
int
physCellId
//by configuration
...
...
@@ -915,7 +915,7 @@ uint8_t is_SIB1_NB_start(
if
(
schedulingInfoSIB1
>
11
||
schedulingInfoSIB1
<
0
){
LOG_E
(
RRC
,
"is_SIB1_NB: schedulingInfoSIB1 value not allowed"
);
LOG_E
(
RRC
,
"is_SIB1_NB
_IoT
: schedulingInfoSIB1 value not allowed"
);
return
0
;
}
...
...
@@ -1182,7 +1182,7 @@ int8_t NB_mac_rrc_data_req_eNB(
///XXX Following FAPI implementation in principle we should only take care of get the PDU from the MAC only when the SIB1-NB period Start
//sib1-NB scheduled in subframe #4
if
(
subframeP
==
4
&&
is_SIB1_
NB_start
(
frameP
,
schedulingInfoSIB1
,
physCellId
)
!=
-
1
){
if
(
subframeP
==
4
&&
is_SIB1_
start_NB_IoT
(
frameP
,
schedulingInfoSIB1
,
physCellId
)
!=
-
1
){
memcpy
(
&
buffer_pP
[
0
],
eNB_rrc_inst_NB
[
Mod_idP
].
carrier
[
CC_id
].
SIB1_NB
,
...
...
openair2/RRC/LITE/proto_nb_iot.h
View file @
946b0635
...
...
@@ -101,7 +101,7 @@ int NB_rrc_mac_config_req_eNB(
* return the SIB1 starting frame
* called by phy_procedure_eNB_Tx before calling the npdsch_procedure
*/
uint32_t
is_SIB1_NB
(
uint32_t
is_SIB1_NB
_IoT
(
const
frame_t
frameP
,
long
schedulingInfoSIB1
,
//from the mib
int
physCellId
,
//by configuration
...
...
@@ -115,7 +115,7 @@ uint32_t is_SIB1_NB(
* return -1 = FALSE
* called by the NB_mac_rrc_data_req
*/
uint8_t
is_SIB1_
NB_start
(
uint8_t
is_SIB1_
start_NB_IoT
(
const
frame_t
frameP
,
long
schedulingInfoSIB1
,
//from the mib
int
physCellId
//by configuration
...
...
@@ -597,3 +597,9 @@ rrc_eNB_free_mem_UE_context_NB(
\return a transaction identifier*/
uint8_t
rrc_eNB_get_next_transaction_identifier_NB
(
module_id_t
module_idP
);
int
rrc_init_global_param_NB_IoT
(
void
);
uint32_t
from_earfcn_NB_IoT
(
int
eutra_bandP
,
uint32_t
dl_earfcn
,
float
m_dl
);
int32_t
get_uldl_offset_NB_IoT
(
int
eutra_band
);
\ No newline at end of file
openair2/RRC/LITE/rrc_common_nb_iot.c
View file @
946b0635
...
...
@@ -152,10 +152,7 @@ rrc_config_buffer_NB(
//-----------------------------------------------------------------------------
//XXX NEW mplementation by Raymond: still used but no more called by MAC/main.c instead directly called by rrc_eNB_nb_iot.c
//XXX maybe this function is no more useful
int
rrc_init_global_param_NB
(
void
)
int
rrc_init_global_param_NB_IoT
(
void
)
//-----------------------------------------------------------------------------
{
...
...
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