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
53417ed1
Commit
53417ed1
authored
Nov 02, 2018
by
Florian Kaltenberger
Committed by
Wolfgang A. Mozart
Nov 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init dumpframe, phy_scope_ue during initial_sync, fixes to loop_through_memory
parent
ec4429c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
11 deletions
+22
-11
targets/RT/USER/nr-ue.c
targets/RT/USER/nr-ue.c
+13
-5
targets/RT/USER/nr-uesoftmodem.c
targets/RT/USER/nr-uesoftmodem.c
+9
-6
No files found.
targets/RT/USER/nr-ue.c
View file @
53417ed1
...
...
@@ -59,6 +59,8 @@
#include "T.h"
#include "PHY/TOOLS/nr_phy_scope.h"
extern
double
cpuf
;
//static nfapi_nr_config_request_t config_t;
//static nfapi_nr_config_request_t* config =&config_t;
...
...
@@ -587,6 +589,12 @@ static void *UE_thread_synch(void *arg) {
break
;
}
extern
FD_lte_phy_scope_ue
*
form_ue
[
NUMBER_OF_UE_MAX
];
phy_scope_UE
(
form_ue
[
0
],
PHY_vars_UE_g
[
0
][
0
],
0
,
0
,
7
);
AssertFatal
(
0
==
pthread_mutex_lock
(
&
UE
->
proc
.
mutex_synch
),
""
);
// indicate readiness
UE
->
proc
.
instance_cnt_synch
--
;
...
...
@@ -1016,6 +1024,10 @@ void *UE_thread(void *arg) {
if
(
first_symbols
<
0
)
LOG_E
(
PHY
,
"can't compensate: diff =%d
\n
"
,
first_symbols
);
}
}
//UE->mode != loop_through_memory
else
rt_sleep_ns
(
1000
*
1000
);
pickTime
(
gotIQs
);
// operate on thread sf mod 2
AssertFatal
(
pthread_mutex_lock
(
&
proc
->
mutex_rxtx
)
==
0
,
""
);
...
...
@@ -1076,7 +1088,7 @@ void *UE_thread(void *arg) {
printf
(
"%s
\n
"
,
exit_fun_string
);
fflush
(
stdout
);
sleep
(
1
);
exit_fun
(
exit_fun_string
);
exit_fun
(
exit_fun_string
);
}
}
...
...
@@ -1087,10 +1099,6 @@ void *UE_thread(void *arg) {
// updateTimes(lastTime, &t1, 20000, "Delay between two IQ acquisitions (case 1)");
// pickStaticTime(lastTime);
}
else
{
printf
(
"Processing subframe %d"
,
proc
->
subframe_rx
);
getchar
();
}
}
// start_rx_stream==1
}
// UE->is_synchronized==1
...
...
targets/RT/USER/nr-uesoftmodem.c
View file @
53417ed1
...
...
@@ -419,10 +419,11 @@ static void *scope_thread(void *arg) {
fl_clear_browser
(
form_stats
->
stats_text
);
fl_add_browser_line
(
form_stats
->
stats_text
,
stats_buffer
);
phy_scope_UE
(
form_ue
[
0
],
PHY_vars_UE_g
[
0
][
0
],
0
,
0
,
7
);
if
(
PHY_vars_UE_g
[
0
][
0
]
->
is_synchronized
==
1
)
phy_scope_UE
(
form_ue
[
0
],
PHY_vars_UE_g
[
0
][
0
],
0
,
0
,
7
);
//else it is done in the synch thread
//printf("doing forms\n");
//usleep(100000); // 100 ms
...
...
@@ -498,7 +499,7 @@ static void get_options(void) {
int
CC_id
;
int
tddflag
,
nonbiotflag
;
char
*
loopfile
=
NULL
;
int
dumpframe
;
int
dumpframe
=
0
;
uint32_t
online_log_messages
;
uint32_t
glog_level
,
glog_verbosity
;
uint32_t
start_telnetsrv
;
...
...
@@ -1190,16 +1191,18 @@ int main( int argc, char **argv ) {
printf
(
"TYPE <CTRL-C> TO TERMINATE
\n
"
);
//getchar();
/*
#if defined(ENABLE_ITTI)
printf("Entering ITTI signals handler\n");
itti_wait_tasks_end();
oai_exit=1;
#else
*/
while
(
oai_exit
==
0
)
rt_sleep_ns
(
100000000ULL
);
#endif
//
#endif
// stop threads
#ifdef XFORMS
...
...
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