Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
OpenXG
OpenXG UE
Commits
ff45e652
Commit
ff45e652
authored
Jan 14, 2021
by
Michael Cook
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lte-uesoftmodem.c: issues reading bler files
parent
589a30b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
targets/RT/USER/lte-uesoftmodem.c
targets/RT/USER/lte-uesoftmodem.c
+10
-6
No files found.
targets/RT/USER/lte-uesoftmodem.c
View file @
ff45e652
...
...
@@ -846,13 +846,16 @@ int main( int argc, char **argv ) {
// Read in each MCS file and build BLER-SINR-TB table
void
init_bler_table
(
void
)
{
size_t
bufSize
=
128
;
char
fName
[
bufSize
];
size_t
bufSize
=
1024
;
char
*
line
=
NULL
;
char
*
token
;
char
*
temp
=
NULL
;
FILE
*
pFile
;
const
char
*
openair_dir
=
getenv
(
"OPENAIR_DIR"
);
if
(
!
openair_dir
)
{
LOG_E
(
MAC
,
"No $OPENAIR_DIR
\n
"
);
abort
();
}
// Maybe not needed... and may not work.
memset
(
bler_data
,
0
,
sizeof
(
bler_data
));
...
...
@@ -860,15 +863,16 @@ void init_bler_table(void)
for
(
unsigned
int
i
=
0
;
i
<
NUM_MCS
;
i
++
)
{
// Filename needs to be changed to dynamic name
char
fName
[
1024
];
snprintf
(
fName
,
sizeof
(
fName
),
"%s/openair1/SIMULATION/LTE_PHY/BLER_SIMULATIONS/AWGN/AWGN_results/bler_tx1_chan18_nrx1_mcs%d.csv"
,
openair_dir
,
i
);
pFile
=
fopen
(
fName
,
"r"
);
if
(
!
pFile
)
FILE
*
pFile
=
fopen
(
fName
,
"r"
);
if
(
!
pFile
)
{
LOG_E
(
MAC
,
"Bler File ERROR! - fopen(), file: %s
\n
"
,
fName
);
abort
();
}
int
nlines
=
0
;
while
(
getline
(
&
line
,
&
bufSize
,
pFile
)
>
0
)
while
(
getline
(
&
line
,
&
bufSize
,
pFile
)
>
0
)
{
if
(
!
strncmp
(
line
,
"SNR"
,
3
))
{
...
...
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