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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG-RAN
Commits
0b100620
Commit
0b100620
authored
Nov 28, 2024
by
Raghavendra Dinavahi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed uplink_frequency_offset from int32 to int64, required for NTN-FR2
parent
582ce818
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
30 additions
and
27 deletions
+30
-27
executables/lte-softmodem.c
executables/lte-softmodem.c
+1
-1
executables/lte-softmodem.h
executables/lte-softmodem.h
+1
-1
executables/lte-ue.c
executables/lte-ue.c
+8
-5
executables/lte-uesoftmodem.c
executables/lte-uesoftmodem.c
+1
-1
executables/main_nr_ru.c
executables/main_nr_ru.c
+1
-1
executables/main_ru.c
executables/main_ru.c
+1
-1
executables/nr-cuup.c
executables/nr-cuup.c
+1
-1
executables/nr-softmodem.c
executables/nr-softmodem.c
+1
-1
executables/nr-uesoftmodem.c
executables/nr-uesoftmodem.c
+1
-1
executables/softmodem-common.h
executables/softmodem-common.h
+3
-3
openair1/PHY/TOOLS/calibration_test.c
openair1/PHY/TOOLS/calibration_test.c
+1
-1
openair1/SIMULATION/NR_PHY/dlschsim.c
openair1/SIMULATION/NR_PHY/dlschsim.c
+1
-1
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+1
-1
openair1/SIMULATION/NR_PHY/pbchsim.c
openair1/SIMULATION/NR_PHY/pbchsim.c
+1
-1
openair1/SIMULATION/NR_PHY/prachsim.c
openair1/SIMULATION/NR_PHY/prachsim.c
+1
-1
openair1/SIMULATION/NR_PHY/psbchsim.c
openair1/SIMULATION/NR_PHY/psbchsim.c
+1
-1
openair1/SIMULATION/NR_PHY/pucchsim.c
openair1/SIMULATION/NR_PHY/pucchsim.c
+1
-1
openair1/SIMULATION/NR_PHY/srssim.c
openair1/SIMULATION/NR_PHY/srssim.c
+1
-1
openair1/SIMULATION/NR_PHY/ulschsim.c
openair1/SIMULATION/NR_PHY/ulschsim.c
+1
-1
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+1
-1
tests/nr-cu-nrppa/nr-cu-nrppa.c
tests/nr-cu-nrppa/nr-cu-nrppa.c
+1
-1
No files found.
executables/lte-softmodem.c
View file @
0b100620
...
...
@@ -101,7 +101,7 @@ int oai_exit = 0;
int
NB_UE_INST
=
0
;
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
UE_scan
=
1
;
int
UE_scan_carrier
=
0
;
...
...
executables/lte-softmodem.h
View file @
0b100620
...
...
@@ -114,7 +114,7 @@ extern uint16_t ue_id_g;
extern
uint16_t
node_number
;
extern
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
extern
int
32_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
extern
int
64_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
extern
int
rx_input_level_dBm
;
extern
openair0_config_t
openair0_cfg
[
MAX_CARDS
];
...
...
executables/lte-ue.c
View file @
0b100620
...
...
@@ -437,8 +437,10 @@ static void *UE_thread_synch(void *arg) {
printf
(
"Scanning band %d, dl_min %"
PRIu32
", ul_min %"
PRIu32
"
\n
"
,
current_band
,
eutra_bands
[
ind
].
dl_min
,
eutra_bands
[
ind
].
ul_min
);
if
((
eutra_bands
[
ind
].
dl_min
<=
UE
->
frame_parms
.
dl_CarrierFreq
)
&&
(
eutra_bands
[
ind
].
dl_max
>=
UE
->
frame_parms
.
dl_CarrierFreq
))
{
for
(
i
=
0
;
i
<
4
;
i
++
)
uplink_frequency_offset
[
CC_id
][
i
]
=
eutra_bands
[
ind
].
ul_min
-
eutra_bands
[
ind
].
dl_min
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
int32_t
delta
=
eutra_bands
[
ind
].
ul_min
-
eutra_bands
[
ind
].
dl_min
;
uplink_frequency_offset
[
CC_id
][
i
]
=
delta
;
}
found
=
1
;
break
;
...
...
@@ -473,8 +475,8 @@ static void *UE_thread_synch(void *arg) {
for
(
i
=
0
;
i
<
openair0_cfg
[
UE
->
rf_map
.
card
].
rx_num_channels
;
i
++
)
{
downlink_frequency
[
UE
->
rf_map
.
card
][
UE
->
rf_map
.
chain
+
i
]
=
bands_to_scan
.
band_info
[
CC_id
].
dl_min
;
uplink_frequency_offset
[
UE
->
rf_map
.
card
][
UE
->
rf_map
.
chain
+
i
]
=
bands_to_scan
.
band_info
[
CC_id
].
ul_min
-
bands_to_scan
.
band_info
[
CC_id
].
dl_min
;
int32_t
delta
=
bands_to_scan
.
band_info
[
CC_id
].
ul_min
-
bands_to_scan
.
band_info
[
CC_id
].
dl_min
;
uplink_frequency_offset
[
UE
->
rf_map
.
card
][
UE
->
rf_map
.
chain
+
i
]
=
delta
;
openair0_cfg
[
UE
->
rf_map
.
card
].
rx_freq
[
UE
->
rf_map
.
chain
+
i
]
=
downlink_frequency
[
CC_id
][
i
];
openair0_cfg
[
UE
->
rf_map
.
card
].
tx_freq
[
UE
->
rf_map
.
chain
+
i
]
=
downlink_frequency
[
CC_id
][
i
]
+
uplink_frequency_offset
[
CC_id
][
i
];
...
...
@@ -517,7 +519,8 @@ static void *UE_thread_synch(void *arg) {
for
(
i
=
0
;
i
<
openair0_cfg
[
UE
->
rf_map
.
card
].
rx_num_channels
;
i
++
)
{
downlink_frequency
[
UE
->
rf_map
.
card
][
UE
->
rf_map
.
chain
+
i
]
=
bands_to_scan
.
band_info
[
current_band
].
dl_min
+
current_offset
;
uplink_frequency_offset
[
UE
->
rf_map
.
card
][
UE
->
rf_map
.
chain
+
i
]
=
bands_to_scan
.
band_info
[
current_band
].
ul_min
-
bands_to_scan
.
band_info
[
0
].
dl_min
+
current_offset
;
int32_t
delta
=
bands_to_scan
.
band_info
[
current_band
].
ul_min
-
bands_to_scan
.
band_info
[
0
].
dl_min
+
current_offset
;
uplink_frequency_offset
[
UE
->
rf_map
.
card
][
UE
->
rf_map
.
chain
+
i
]
=
delta
;
openair0_cfg
[
UE
->
rf_map
.
card
].
rx_freq
[
UE
->
rf_map
.
chain
+
i
]
=
downlink_frequency
[
CC_id
][
i
];
openair0_cfg
[
UE
->
rf_map
.
card
].
tx_freq
[
UE
->
rf_map
.
chain
+
i
]
=
downlink_frequency
[
CC_id
][
i
]
+
uplink_frequency_offset
[
CC_id
][
i
];
openair0_cfg
[
UE
->
rf_map
.
card
].
rx_gain
[
UE
->
rf_map
.
chain
+
i
]
=
UE
->
rx_total_gain_dB
;
...
...
executables/lte-uesoftmodem.c
View file @
0b100620
...
...
@@ -92,7 +92,7 @@ unsigned int mmapped_dma=0;
UE_MAC_INST
*
UE_mac_inst
=
NULL
;
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
...
...
executables/main_nr_ru.c
View file @
0b100620
...
...
@@ -55,7 +55,7 @@ extern void set_function_spec_param(RU_t *ru);
extern
void
start_NR_RU
();
extern
void
init_NR_RU
(
configmodule_interface_t
*
cfg
,
char
*
);
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
void
nfapi_setmode
(
nfapi_mode_t
nfapi_mode
)
{
...
...
executables/main_ru.c
View file @
0b100620
...
...
@@ -84,7 +84,7 @@ extern void init_RU_proc(RU_t *ru);
extern
void
kill_RU_proc
(
RU_t
*
ru
);
extern
void
set_function_spec_param
(
RU_t
*
ru
);
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
void
nfapi_setmode
(
nfapi_mode_t
nfapi_mode
)
{
return
;
}
...
...
executables/nr-cuup.c
View file @
0b100620
...
...
@@ -36,7 +36,7 @@
RAN_CONTEXT_t
RC
;
THREAD_STRUCT
thread_struct
;
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
oai_exit
=
0
;
instance_t
CUuniqInstance
=
0
;
...
...
executables/nr-softmodem.c
View file @
0b100620
...
...
@@ -101,7 +101,7 @@ int oai_exit = 0;
unsigned
int
mmapped_dma
=
0
;
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
char
*
uecap_file
;
runmode_t
mode
=
normal_txrx
;
...
...
executables/nr-uesoftmodem.c
View file @
0b100620
...
...
@@ -103,7 +103,7 @@ RAN_CONTEXT_t RC;
int
oai_exit
=
0
;
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
uint64_t
sidelink_frequency
[
MAX_NUM_CCs
][
4
];
// UE and OAI config variables
...
...
executables/softmodem-common.h
View file @
0b100620
...
...
@@ -138,8 +138,8 @@ extern int usrp_tx_thread;
{"clock-source", CONFIG_HLP_CLK, 0, .uptr=&CLOCK_SOURCE, .defintval=0, TYPE_UINT, 0}, \
{"time-source", CONFIG_HLP_TME, 0, .uptr=&TIMING_SOURCE, .defintval=0, TYPE_UINT, 0}, \
{"tune-offset", CONFIG_HLP_TUNE_OFFSET, 0, .dblptr=&TUNE_OFFSET, .defintval=0, TYPE_DOUBLE, 0}, \
{"C" , CONFIG_HLP_DLF, 0, .u64ptr=&(downlink_frequency[0][0]), .def
int64val=0,
TYPE_UINT64, 0}, \
{"CO" , CONFIG_HLP_ULF, 0, .i
ptr=&(uplink_frequency_offset[0][0]), .defintval=0, TYPE_INT,
0}, \
{"C" , CONFIG_HLP_DLF, 0, .u64ptr=&(downlink_frequency[0][0]), .def
uintval=0,
TYPE_UINT64, 0}, \
{"CO" , CONFIG_HLP_ULF, 0, .i
64ptr=&(uplink_frequency_offset[0][0]), .defintval=0, TYPE_INT64,
0}, \
{"a" , CONFIG_HLP_CHOFF, 0, .iptr=&CHAIN_OFFSET, .defintval=0, TYPE_INT, 0}, \
{"d" , CONFIG_HLP_SOFTS, PARAMFLAG_BOOL, .uptr=&do_forms, .defintval=0, TYPE_UINT, 0}, \
{"q" , CONFIG_HLP_STMON, PARAMFLAG_BOOL, .iptr=&cpu_meas_enabled, .defintval=0, TYPE_INT, 0}, \
...
...
@@ -330,7 +330,7 @@ char *get_softmodem_function(void);
#define SOFTMODEM_RTSIGNAL (SIGRTMIN+1)
void
set_softmodem_sighandler
(
void
);
extern
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
extern
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
extern
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
extern
int
usrp_tx_thread
;
extern
int
sf_ahead
;
extern
int
oai_exit
;
...
...
openair1/PHY/TOOLS/calibration_test.c
View file @
0b100620
...
...
@@ -11,7 +11,7 @@ unsigned int mmapped_dma=0;
uint32_t
timing_advance
;
int8_t
threequarter_fs
;
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
cpu_meas_enabled
;
THREAD_STRUCT
thread_struct
;
uint32_t
target_ul_mcs
=
9
;
...
...
openair1/SIMULATION/NR_PHY/dlschsim.c
View file @
0b100620
...
...
@@ -56,7 +56,7 @@ PHY_VARS_gNB *gNB;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
UE_nr_rxtx_proc_t
proc
;
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
double
cpuf
;
...
...
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
0b100620
...
...
@@ -104,7 +104,7 @@ const char *__asan_default_options()
PHY_VARS_gNB
*
gNB
;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
double
cpuf
;
char
*
uecap_file
;
...
...
openair1/SIMULATION/NR_PHY/pbchsim.c
View file @
0b100620
...
...
@@ -55,7 +55,7 @@
PHY_VARS_gNB
*
gNB
;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
double
cpuf
;
...
...
openair1/SIMULATION/NR_PHY/prachsim.c
View file @
0b100620
...
...
@@ -79,7 +79,7 @@ RU_t *ru;
double
cpuf
;
//uint8_t nfapi_mode=0;
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
uint32_t
N_RB_DL
=
106
;
NR_IF_Module_t
*
NR_IF_Module_init
(
int
Mod_id
)
{
return
(
NULL
);
}
...
...
openair1/SIMULATION/NR_PHY/psbchsim.c
View file @
0b100620
...
...
@@ -71,7 +71,7 @@ void get_num_re_dmrs(nfapi_nr_ue_pusch_pdu_t *pusch_pdu, uint8_t *nb_dmrs_re_per
}
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
THREAD_STRUCT
thread_struct
;
instance_t
DUuniqInstance
=
0
;
instance_t
CUuniqInstance
=
0
;
...
...
openair1/SIMULATION/NR_PHY/pucchsim.c
View file @
0b100620
...
...
@@ -53,7 +53,7 @@ THREAD_STRUCT thread_struct;
PHY_VARS_gNB
*
gNB
;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
double
cpuf
;
...
...
openair1/SIMULATION/NR_PHY/srssim.c
View file @
0b100620
...
...
@@ -48,7 +48,7 @@ PHY_VARS_gNB *gNB;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
char
*
uecap_file
=
NULL
;
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
double
cpuf
;
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
...
...
openair1/SIMULATION/NR_PHY/ulschsim.c
View file @
0b100620
...
...
@@ -55,7 +55,7 @@ THREAD_STRUCT thread_struct;
PHY_VARS_gNB
*
gNB
;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
static
softmodem_params_t
softmodem_params
;
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
0b100620
...
...
@@ -106,7 +106,7 @@ PHY_VARS_gNB *gNB;
PHY_VARS_NR_UE
*
UE
;
RAN_CONTEXT_t
RC
;
char
*
uecap_file
;
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
double
cpuf
;
//uint8_t nfapi_mode = 0;
...
...
tests/nr-cu-nrppa/nr-cu-nrppa.c
View file @
0b100620
...
...
@@ -37,7 +37,7 @@
RAN_CONTEXT_t
RC
;
THREAD_STRUCT
thread_struct
;
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
int
32
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
64
_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
oai_exit
=
0
;
int
gnb_id
;
int
NB_UE_INST
=
1
;
...
...
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