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
wangjie
OpenXG-RAN
Commits
2d12cac7
Commit
2d12cac7
authored
Feb 26, 2020
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first
parent
334519d1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
executables/nr-ue.c
executables/nr-ue.c
+13
-0
openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c
openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c
+3
-3
openair1/PHY/NR_UE_TRANSPORT/sss_nr.c
openair1/PHY/NR_UE_TRANSPORT/sss_nr.c
+2
-0
No files found.
executables/nr-ue.c
View file @
2d12cac7
...
...
@@ -635,6 +635,7 @@ int computeSamplesShift(PHY_VARS_NR_UE *UE) {
}
void
*
UE_thread
(
void
*
arg
)
{
int
f_name_idx
=
0
;
//this thread should be over the processing thread to keep in real time
PHY_VARS_NR_UE
*
UE
=
(
PHY_VARS_NR_UE
*
)
arg
;
// int tx_enabled = 0;
...
...
@@ -680,6 +681,18 @@ void *UE_thread(void *arg) {
if
(
!
UE
->
is_synchronized
)
{
readFrame
(
UE
,
&
timestamp
,
false
);
char
filename
[
40
];
sprintf
(
filename
,
"rxdata_frame_ue_%d.dat"
,
f_name_idx
);
FILE
*
output_fd
=
fopen
(
filename
,
"w"
);
if
(
output_fd
)
{
fwrite
(
&
UE
->
common_vars
.
rxdata
[
0
][
0
],
sizeof
(
int32_t
),
UE
->
frame_parms
.
samples_per_subframe
*
20
,
output_fd
);
fclose
(
output_fd
);
}
f_name_idx
++
;
notifiedFIFO_elt_t
*
Msg
=
newNotifiedFIFO_elt
(
sizeof
(
syncData_t
),
0
,
&
nf
,
UE_synch
);
syncData_t
*
syncMsg
=
(
syncData_t
*
)
NotifiedFifoData
(
Msg
);
syncMsg
->
UE
=
UE
;
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_initial_sync.c
View file @
2d12cac7
...
...
@@ -245,10 +245,10 @@ int nr_initial_sync(UE_nr_rxtx_proc_t *proc, PHY_VARS_NR_UE *ue, runmode_t mode,
else
ue
->
ssb_offset
=
sync_pos
+
(
fp
->
samples_per_subframe
*
10
)
-
fp
->
nb_prefix_samples
;
#ifdef DEBUG_INITIAL_SYNCH
//
#ifdef DEBUG_INITIAL_SYNCH
LOG_I
(
PHY
,
"[UE%d] Initial sync : Estimated PSS position %d, Nid2 %d
\n
"
,
ue
->
Mod_id
,
sync_pos
,
ue
->
common_vars
.
eNb_id
);
LOG_I
(
PHY
,
"sync_pos %d ssb_offset %d
\n
"
,
sync_pos
,
ue
->
ssb_offset
);
#endif
LOG_I
(
PHY
,
"sync_pos %d ssb_offset %d
frame %d
\n
"
,
sync_pos
,
ue
->
ssb_offset
,
is
);
//
#endif
// digital compensation of FFO for SSB symbols
if
(
ue
->
UE_fo_compensation
){
...
...
openair1/PHY/NR_UE_TRANSPORT/sss_nr.c
View file @
2d12cac7
...
...
@@ -334,6 +334,7 @@ int do_pss_sss_extract_nr(PHY_VARS_NR_UE *ue,
rxdataF
=
ue
->
common_vars
.
common_vars_rx_data_per_thread
[
ue
->
current_thread_id
[
subframe
]].
rxdataF
;
unsigned
int
ofdm_symbol_size
=
frame_parms
->
ofdm_symbol_size
;
write_output
(
"pss_rxF.m"
,
"pss_rxF"
,
rxdataF
[
aarx
],
ofdm_symbol_size
,
1
,
1
);
pss_rxF
=
&
rxdataF
[
aarx
][
pss_symbol
*
ofdm_symbol_size
];
sss_rxF
=
&
rxdataF
[
aarx
][
sss_symbol
*
ofdm_symbol_size
];
...
...
@@ -437,6 +438,7 @@ int rx_sss_nr(PHY_VARS_NR_UE *ue, int32_t *tot_metric,uint8_t *phase_max)
sss_ext
,
0
);
/* subframe */
write_output
(
"pss_ext.m"
,
"pss_ext"
,
pss_ext
,
LENGTH_PSS_NR
,
1
,
1
);
#ifdef DEBUG_PLOT_SSS
write_output
(
"rxsig0.m"
,
"rxs0"
,
&
ue
->
common_vars
.
rxdata
[
0
][
0
],
ue
->
frame_parms
.
samples_per_subframe
,
1
,
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