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
zzha zzha
OpenXG-RAN
Commits
f23f4355
Commit
f23f4355
authored
May 17, 2022
by
Arash Sahbafard
Committed by
laurent
Aug 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RFsim Telnet command to get current timestamp/vtime
parent
d9b5c0c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
targets/ARCH/rfsimulator/simulator.c
targets/ARCH/rfsimulator/simulator.c
+11
-0
No files found.
targets/ARCH/rfsimulator/simulator.c
View file @
f23f4355
...
...
@@ -92,10 +92,12 @@
static
int
rfsimu_setchanmod_cmd
(
char
*
buff
,
int
debug
,
telnet_printfunc_t
prnt
,
void
*
arg
);
static
int
rfsimu_setdistance_cmd
(
char
*
buff
,
int
debug
,
telnet_printfunc_t
prnt
,
void
*
arg
);
static
int
rfsimu_getdistance_cmd
(
char
*
buff
,
int
debug
,
telnet_printfunc_t
prnt
,
void
*
arg
);
static
int
rfsimu_vtime_cmd
(
char
*
buff
,
int
debug
,
telnet_printfunc_t
prnt
,
void
*
arg
);
static
telnetshell_cmddef_t
rfsimu_cmdarray
[]
=
{
{
"setmodel"
,
"<model name> <model type>"
,(
cmdfunc_t
)
rfsimu_setchanmod_cmd
,
TELNETSRV_CMDFLAG_PUSHINTPOOLQ
},
{
"setdistance"
,
"<model name> <distance>"
,
(
cmdfunc_t
)
rfsimu_setdistance_cmd
,
TELNETSRV_CMDFLAG_PUSHINTPOOLQ
},
{
"getdistance"
,
"<model name>"
,
(
cmdfunc_t
)
rfsimu_getdistance_cmd
,
TELNETSRV_CMDFLAG_PUSHINTPOOLQ
},
{
"vtime"
,
""
,
(
cmdfunc_t
)
rfsimu_vtime_cmd
,
TELNETSRV_CMDFLAG_PUSHINTPOOLQ
},
{
""
,
""
,
NULL
},
};
...
...
@@ -522,6 +524,15 @@ static int rfsimu_getdistance_cmd(char *buff, int debug, telnet_printfunc_t prnt
return
CMDSTATUS_FOUND
;
}
static
int
rfsimu_vtime_cmd
(
char
*
buff
,
int
debug
,
telnet_printfunc_t
prnt
,
void
*
arg
)
{
rfsimulator_state_t
*
t
=
(
rfsimulator_state_t
*
)
arg
;
const
openair0_timestamp
ts
=
t
->
nextRxTstamp
;
const
double
sample_rate
=
t
->
sample_rate
;
prnt
(
"vtime measurement: TS %llu sample_rate %.3f
\n
"
,
ts
,
sample_rate
);
return
CMDSTATUS_FOUND
;
}
static
int
startServer
(
openair0_device
*
device
)
{
rfsimulator_state_t
*
t
=
(
rfsimulator_state_t
*
)
device
->
priv
;
t
->
typeStamp
=
ENB_MAGICDL
;
...
...
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