[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 43/148: minor tweak to transport loop and d
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 43/148: minor tweak to transport loop and debug printf for vrt |
Date: |
Mon, 15 Aug 2016 00:47:23 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
nwest pushed a commit to annotated tag old_usrp_devel_udp
in repository gnuradio.
commit f641f9319109b73907bf2f50f16ec49252f223cb
Author: Josh Blum <address@hidden>
Date: Wed Nov 18 17:12:27 2009 -0800
minor tweak to transport loop and debug printf for vrt
---
usrp2/host/lib/transport.cc | 2 +-
usrp2/host/lib/usrp2_impl.cc | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/usrp2/host/lib/transport.cc b/usrp2/host/lib/transport.cc
index f886973..ae2cd98 100644
--- a/usrp2/host/lib/transport.cc
+++ b/usrp2/host/lib/transport.cc
@@ -60,7 +60,7 @@ void usrp2::transport::run(){
// call recv to get a new sbuffer
// pass the buffer into the callback
std::vector<sbuff::sptr> sbs = recv();
- if (sbs.size()) d_cb(sbs);
+ if (d_running and sbs.size()) d_cb(sbs);
//catch thread interrupts from join, sleep, etc
//the running condition will be re-checked
}catch(boost::thread_interrupted const &){}
diff --git a/usrp2/host/lib/usrp2_impl.cc b/usrp2/host/lib/usrp2_impl.cc
index ebf5b19..cfb15d9 100644
--- a/usrp2/host/lib/usrp2_impl.cc
+++ b/usrp2/host/lib/usrp2_impl.cc
@@ -259,16 +259,15 @@ namespace usrp2 {
// Try to parse each packet and enqueue the data into the channel ring.
// Bad packets will be ignored and their data freed by done().
for (size_t i = 0; i < sbs.size(); i++) {
- sbuff::sptr sb = sbs[i];
+ ring_data rd; rd.sb = sbs[i];
//parse the vrt header and store into the ring data structure
- ring_data rd; rd.sb = sb;
if (not vrt::expanded_header::parse(
(const uint32_t*)rd.sb->buff(), rd.sb->len()/sizeof(uint32_t), //in
&rd.hdr, &rd.payload, &rd.n32_bit_words_payload) //out
or not rd.hdr.stream_id_p()
){
- printf("Bad vrt header 0x%x\n", rd.hdr.header);
+ printf("Bad vrt header 0x%.8x, Packet len %d\n", rd.hdr.header,
rd.sb->len());
DEBUG_LOG("!");
rd.sb->done(); //mark done, this sbuff is no longer needed
continue;
- [Commit-gnuradio] [gnuradio] 24/148: vita rx instead of rx_control. Ready for firmware testing. Misses timing by a little bit, will worry later., (continued)
- [Commit-gnuradio] [gnuradio] 24/148: vita rx instead of rx_control. Ready for firmware testing. Misses timing by a little bit, will worry later., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 33/148: got firmware compiling with vrt rx, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 34/148: forgot to declare wires, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 39/148: mostly just copied over from the rx side. Still needs a lot of work., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 40/148: Added missing flag to vrt header in txrx.c. Added parsing to vrt expanded header to copy out header entries. Modified usrp2 impl to use the correctly parsed header., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 35/148: got vrt rx somewhat working, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 52/148: seems to correctly deframe packets. now need to consume them., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 50/148: make the testbench work in this environment, without the crossclock settings bus, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 26/148: moved regs around for vita49, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 19/148: VITA49 rx (and tx skeleton) copied over from quad radio, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 43/148: minor tweak to transport loop and debug printf for vrt,
git <=
- [Commit-gnuradio] [gnuradio] 44/148: Removed temporary u2_eth_packet_only_t. Removed the fixed header portion from the u2_eth_packet_t. Removed places in code where control uses the fixed header (always unused 0 for word, and -1 for timestamp). Flagged the fixed header stuff for removal (once we get vrt tx)., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 25/148: cleanup, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 42/148: Created a ring data structure held by the ring. It holds an sbuff and its parsed vrt data (header, payload, and len). The impl data handler parses the packets and enqueues them., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 48/148: Added interrupt call from transport::stop so the recv or callback will throw at interruption points. This fixes the issue where the app would hang in the stop method when exiting (we were hanging here: d_data_pending_cond.wait(l), but now wait throws() and we exit)., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 54/148: flag packets which arrive way too early so the device doesn't sit there forever., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 38/148: rx working with vrt header, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 45/148: Re-implemented find.cc with gruel and eth_ctrl_transport class. Added constructor args to the eth control transport to set the timeout and target for the packet filter., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 49/148: Added read_packet with timeout method to ethernet. Now the control recv can timeout and immediately recv., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 21/148: put 64 bit timer for vita49 on the settings bus, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 47/148: Handled the case of short packets in eth data transport by using padding., git, 2016/08/14