Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
trx_test
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
FANG WANG
trx_test
Commits
d7c978e0
Commit
d7c978e0
authored
Jul 26, 2022
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bind to core
parent
e7d01103
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
4 deletions
+18
-4
trx_test.c
trx_test.c
+18
-4
No files found.
trx_test.c
View file @
d7c978e0
#define _GNU_SOURCE
#include <sched.h>
#include <assert.h>
#include "trx_test.h"
int
txdata_size
=
57344
;
int
rxdata_size
=
2465792
;
int
absolute_slot
=
0
;
...
...
@@ -34,8 +39,16 @@ struct timespec nr_get_timespec_diff(
}
int
main
(
int
argc
,
char
**
argv
)
{
struct
sched_param
rr_param
;
rr_param
.
sched_priority
=
90
;
sched_setscheduler
(
getpid
(),
SCHED_RR
,
&
rr_param
);
cpu_set_t
mask
;
CPU_ZERO
(
&
mask
);
CPU_SET
(
5
,
&
mask
);
int
rc
=
sched_setaffinity
(
getpid
(),
sizeof
(
mask
),
&
mask
);
assert
(
rc
>=
0
);
//
T_Config_Init();
//
T_Config_Init();
openair0_config_t
openair0_cfg
[
4
];
openair0_device
rfdevice
;
...
...
@@ -60,8 +73,8 @@ int main( int argc, char **argv ) {
openair0_cfg
[
card
].
rx_num_channels
,
openair0_cfg
[
card
].
duplex_mode
);
int
dl_carrier
=
3628380000
;
int
ul_carrier
=
3628380000
;
double
dl_carrier
=
3628380000
;
double
ul_carrier
=
3628380000
;
int
freq_off
=
0
;
int
rx_gain_off
=
0
;
int
rf_chain
=
0
;
...
...
@@ -154,7 +167,8 @@ int main( int argc, char **argv ) {
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_TRX_READ
,
VCD_FUNCTION_OUT
);
// use previous timing_advance value to compute writeTimestamp
writeTimestamp
=
timestamp
+
samples_per_subframe
/
20
*
5
;
// sent after 5 slot.
//writeTimestamp = timestamp+samples_per_subframe/20*5;// sent after 5 slot.
writeTimestamp
=
timestamp
+
samples_per_subframe
/
2
*
5
;
// sent after 5 slot.
// but use current UE->timing_advance value to compute writeBlockSize
...
...
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