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
83688c96
Commit
83688c96
authored
May 20, 2021
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rf calibration tool improvement
parent
d42e44ec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
common/utils/minimal_stub.c
common/utils/minimal_stub.c
+2
-0
openair1/PHY/TOOLS/calibration_test.c
openair1/PHY/TOOLS/calibration_test.c
+13
-3
No files found.
common/utils/minimal_stub.c
View file @
83688c96
#ifndef T_TRACER
int
T_stdout
;
#endif
void
exit_function
(
const
char
*
file
,
const
char
*
function
,
const
int
line
,
const
char
*
s
)
{
}
openair1/PHY/TOOLS/calibration_test.c
View file @
83688c96
...
...
@@ -10,12 +10,17 @@ unsigned int mmapped_dma=0;
int
single_thread_flag
;
uint32_t
timing_advance
;
int8_t
threequarter_fs
;
int
usrp_tx_thread
;
uint64_t
downlink_frequency
[
MAX_NUM_CCs
][
4
];
int32_t
uplink_frequency_offset
[
MAX_NUM_CCs
][
4
];
int
opp_enabled
;
static
double
snr_dB
=
20
;
THREAD_STRUCT
thread_struct
;
uint32_t
target_ul_mcs
=
9
;
uint32_t
target_dl_mcs
=
9
;
uint64_t
dlsch_slot_bitmap
=
(
1
<<
1
);
uint64_t
ulsch_slot_bitmap
=
(
1
<<
8
);
uint32_t
target_ul_bw
=
50
;
uint32_t
target_dl_bw
=
50
;
#include <executables/nr-softmodem.h>
int
read_recplayconfig
(
recplay_conf_t
**
recplay_conf
,
recplay_state_t
**
recplay_state
)
{
return
0
;}
...
...
@@ -303,6 +308,9 @@ int main(int argc, char **argv) {
void
**
samplesRx
=
(
void
**
)
malloc16
(
antennas
*
sizeof
(
struct
complex16
*
)
);
void
**
samplesTx
=
(
void
**
)
malloc16
(
antennas
*
sizeof
(
struct
complex16
*
)
);
int
fd
=
open
(
getenv
(
"rftestInputFile"
),
O_RDONLY
);
AssertFatal
(
fd
>=
0
,
"%s"
,
strerror
(
errno
));
for
(
int
i
=
0
;
i
<
antennas
;
i
++
)
{
samplesRx
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
DFT
*
sizeof
(
struct
complex16
)
);
samplesTx
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
DFT
*
sizeof
(
struct
complex16
)
);
...
...
@@ -313,14 +321,16 @@ int main(int argc, char **argv) {
rfdevice
.
trx_start_func
(
&
rfdevice
);
while
(
!
oai_exit
)
{
for
(
int
i
=
0
;
i
<
antennas
;
i
++
)
read
(
fd
,
samplesTx
[
i
],
DFT
*
sizeof
(
struct
complex16
));
int
readBlockSize
=
rfdevice
.
trx_read_func
(
&
rfdevice
,
&
timestamp
,
samples
T
x
,
samples
R
x
,
DFT
,
antennas
);
int
txs
=
rfdevice
.
trx_write_func
(
&
rfdevice
,
timestamp
+
TxAdvanceInDFTSize
*
DFT
,
samples
R
x
,
samples
T
x
,
DFT
,
antennas
,
0
);
...
...
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