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
2e91cca4
Commit
2e91cca4
authored
May 02, 2021
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sending small end-of-burst TX packet when exiting softmodem
parent
d953b253
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+15
-2
No files found.
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
2e91cca4
...
...
@@ -315,11 +315,24 @@ static void trx_usrp_end(openair0_device *device) {
return
;
usrp_state_t
*
s
=
(
usrp_state_t
*
)
device
->
priv
;
if
(
s
==
NULL
)
return
;
iqrecorder_end
(
device
);
// if last packet sent was end of burst no need to do anything. otherwise send end of burst packet
if
(
s
->
tx_md
.
end_of_burst
!=
true
)
{
s
->
tx_md
.
end_of_burst
=
true
;
s
->
tx_md
.
start_of_burst
=
false
;
s
->
tx_md
.
has_time_spec
=
false
;
int32_t
dummy
=
0
;
std
::
vector
<
const
void
*>
buffs
;
for
(
size_t
ch
=
0
;
ch
<
s
->
tx_stream
->
get_num_channels
();
ch
++
)
buffs
.
push_back
(
&
dummy
);
// same buffer for each channel
s
->
tx_stream
->
send
(
buffs
,
0
,
s
->
tx_md
);
}
iqrecorder_end
(
device
);
}
...
...
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