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
littleBu
OpenXG-RAN
Commits
7e82f2f4
Commit
7e82f2f4
authored
3 years ago
by
Florian Kaltenberger
Committed by
Robert Schmidt
2 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sending small end-of-burst TX packet when exiting softmodem
parent
69cf59f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+18
-0
No files found.
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
7e82f2f4
...
...
@@ -310,6 +310,23 @@ static int trx_usrp_start(openair0_device *device) {
return
0
;
}
static
void
trx_usrp_send_end_of_burst
(
usrp_state_t
*
s
)
{
// 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
)
return
;
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
);
}
static
void
trx_usrp_write_reset
(
openair0_thread_t
*
wt
);
/*! \brief Terminate operation of the USRP transceiver -- free all associated resources
...
...
@@ -328,6 +345,7 @@ static void trx_usrp_end(openair0_device *device) {
if
(
usrp_tx_thread
!=
0
)
trx_usrp_write_reset
(
&
device
->
write_thread
);
trx_usrp_send_end_of_burst
(
s
);
s
->
tx_stream
->~
tx_streamer
();
s
->
rx_stream
->~
rx_streamer
();
s
->
usrp
->~
multi_usrp
();
...
...
This diff is collapsed.
Click to expand it.
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