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
bad20fa2
Commit
bad20fa2
authored
Jan 03, 2024
by
wf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dont' set gain
parent
0ebd8b7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
radio/DPDKRF/dpdkrf_oai.c
radio/DPDKRF/dpdkrf_oai.c
+6
-4
No files found.
radio/DPDKRF/dpdkrf_oai.c
View file @
bad20fa2
...
...
@@ -99,15 +99,16 @@ int trx_dpdkrf_start(openair0_device *device) {
Dpdk_device_init
(
14
,
15
,
2
,
2
,
50000
,
1
);
sleep
(
1
);
sleep
(
1
);
printf
(
"FREQ NOT SET!!!!!!!
\n\n\n\n\n\n\n\n\n\n\n\n
"
);
printf
(
"
trx_dpdkrf_start
FREQ NOT SET!!!!!!!
\n\n\n\n\n\n\n\n\n\n\n\n
"
);
// trx_dpdkrf_setFreq((int64_t)openair0_cfg->rx_freq[0], (int64_t)openair0_cfg->tx_freq[0]);
// printf("1freq = %ld %ld\n\n",(int64_t)(openair0_cfg->rx_freq[0]), (int64_t)(openair0_cfg->tx_freq[0]));
//sleep(1);
//trx_dpdkrf_setFreq(3747840000, 3747840000);
printf
(
"trx_dpdkrf_start GAIN NOT SET!!!!!!!
\n\n\n\n\n\n\n\n\n\n\n\n
"
);
sleep
(
1
);
trx_dpdkrf_gainTx
(
openair0_cfg
->
tx_gain
[
0
],
openair0_cfg
->
tx_gain
[
0
],
openair0_cfg
->
tx_gain
[
0
],
openair0_cfg
->
tx_gain
[
0
]);
//
trx_dpdkrf_gainTx(openair0_cfg->tx_gain[0], openair0_cfg->tx_gain[0], openair0_cfg->tx_gain[0], openair0_cfg->tx_gain[0]);
sleep
(
1
);
trx_dpdkrf_gainRx
(
openair0_cfg
->
rx_gain
[
0
],
openair0_cfg
->
rx_gain
[
0
],
openair0_cfg
->
rx_gain
[
0
],
openair0_cfg
->
rx_gain
[
0
]);
//
trx_dpdkrf_gainRx(openair0_cfg->rx_gain[0], openair0_cfg->rx_gain[0], openair0_cfg->rx_gain[0], openair0_cfg->rx_gain[0]);
printf
(
"txgains (0-30) %d, rxgains(30-0) %d
\n
"
,
(
int
)(
openair0_cfg
->
tx_gain
[
0
]),
(
int
)(
openair0_cfg
->
rx_gain
[
0
]));
...
...
@@ -133,7 +134,7 @@ int trx_dpdkrf_set_freq(openair0_device* device, openair0_config_t *openair0_cfg
// trx_setMsgFreq(gTxCtrlBuf, (uint64_t)(openair0_cfg->rx_freq[0]),(uint64_t)(openair0_cfg->tx_freq[0]));
// txpCtrl[0] = (uint8_t *)gTxCtrlBuf;
// trx_dpdkrf_write_ctrl(txpCtrl);
printf
(
"FREQ NOT SET!!!!!!!
\n\n\n\n\n\n\n\n\n\n\n\n
"
);
printf
(
"
trx_dpdkrf_set_freq
FREQ NOT SET!!!!!!!
\n\n\n\n\n\n\n\n\n\n\n\n
"
);
//trx_dpdkrf_setFreq(openair0_cfg->rx_freq[0], openair0_cfg->tx_freq[0]);
return
(
0
);
}
...
...
@@ -153,6 +154,7 @@ int trx_dpdkrf_set_gains(openair0_device* device, openair0_config_t *openair0_cf
txpCtrl[0] = (uint8_t *)gTxCtrlBuf;
trx_dpdkrf_write_ctrl(txpCtrl);
#endif
printf
(
"trx_dpdkrf_set_gains GAIN NOT SET!!!!!!!
\n\n\n\n\n\n\n\n\n\n\n\n
"
);
trx_dpdkrf_gainTx
(
openair0_cfg
->
tx_gain
[
0
],
openair0_cfg
->
tx_gain
[
0
],
openair0_cfg
->
tx_gain
[
0
],
openair0_cfg
->
tx_gain
[
0
]);
sleep
(
1
);
trx_dpdkrf_gainTx
(
openair0_cfg
->
rx_gain
[
0
],
openair0_cfg
->
rx_gain
[
0
],
openair0_cfg
->
rx_gain
[
0
],
openair0_cfg
->
rx_gain
[
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