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
lizhongxiao
OpenXG-RAN
Commits
c8c6b9e9
Commit
c8c6b9e9
authored
Oct 17, 2018
by
magounak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dumb received signal at slave RRU
parent
34f3422b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
openair1/PHY/LTE_TRANSPORT/if4_tools.c
openair1/PHY/LTE_TRANSPORT/if4_tools.c
+0
-1
targets/RT/USER/lte-ru.c
targets/RT/USER/lte-ru.c
+7
-4
No files found.
openair1/PHY/LTE_TRANSPORT/if4_tools.c
View file @
c8c6b9e9
...
...
@@ -285,7 +285,6 @@ void recv_IF4p5(RU_t *ru, int *frame, int *subframe, uint16_t *packet_type, uint
int slotoffsetF=0, blockoffsetF=0;
eth_state_t *eth = (eth_state_t*) (ru->ifdevice.priv);
int idx;
if (ru->idx<=1) VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME( VCD_SIGNAL_DUMPER_FUNCTIONS_RECV_IF4+ru->idx, 1 );
if (ru->function == NGFI_RRU_IF4p5) {
...
...
targets/RT/USER/lte-ru.c
View file @
c8c6b9e9
...
...
@@ -422,6 +422,7 @@ void fh_if4p5_north_asynch_in(RU_t *ru,int *frame,int *subframe) {
LOG_D
(
PHY
,
"fh_if4p5_north_asynch_in: RU %d, frame %d, subframe %d
\n
"
,
ru
->
idx
,
*
frame
,
*
subframe
);
do
{
recv_IF4p5
(
ru
,
&
frame_tx
,
&
subframe_tx
,
&
packet_type
,
&
symbol_number
);
//printf("income frame.subframe %d.%d, our frame.subframe %d.%d\n",frame_tx,subframe_tx,*frame,*subframe);
if
(
ru
->
cmd
==
STOP_RU
){
LOG_E
(
PHY
,
"Got STOP_RU
\n
"
);
pthread_mutex_lock
(
&
proc
->
mutex_ru
);
...
...
@@ -1082,7 +1083,7 @@ void do_ru_synch(RU_t *ru) {
while
((
ic
>=
0
)
&&
(
!
oai_exit
))
{
// continuously read in frames, 1ms at a time,
// until we are done with the synchronization procedure
LOG_
I
(
PHY
,
"ic %d
\n
"
,
ic
);
LOG_
D
(
PHY
,
"ic %d
\n
"
,
ic
);
for
(
i
=
0
;
i
<
ru
->
nb_rx
;
i
++
)
rxp2
[
i
]
=
(
void
*
)
&
dummy_rx
[
i
][
0
];
for
(
i
=
0
;
i
<
10
;
i
++
)
...
...
@@ -1879,12 +1880,14 @@ void *ru_thread_synch(void *arg) {
&
avg
);
LOG_I
(
PHY
,
"RU synch cnt %d: %d, val %d
\n
"
,
cnt
,
ru
->
rx_offset
,
peak_val
);
cnt
++
;
if
(
ru
->
rx_offset
>=
0
)
{
if
(
ru
->
rx_offset
>=
0
&&
cnt
>
100
)
{
LOG_I
(
PHY
,
"Estimated peak_val %d dB, avg %d => timing offset %d
\n
"
,
ru
->
rx_offset
,
dB_fixed
(
peak_val
),
ru
->
rx_offset
);
LOG_I
(
PHY
,
"Estimated peak_val %d dB, avg %d => timing offset %d
\n
"
,
dB_fixed
(
peak_val
),
dB_fixed
(
avg
),
ru
->
rx_offset
);
ru
->
in_synch
=
1
;
LOG_M
(
"ru_sync_rx.m"
,
"rurx"
,
&
ru
->
common
.
rxdata
[
0
][
0
],
LTE_NUMBER_OF_SUBFRAMES_PER_FRAME
*
fp
->
samples_per_tti
,
1
,
1
);
exit
(
-
1
);
}
// sy
m
c_pos > 0
}
// sy
n
c_pos > 0
else
//AssertFatal(cnt<1000,"Cannot find synch reference\n");
{
if
(
cnt
>
200
)
{
...
...
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