I don't think the streamer changes the packet size. I believe what the block sends is what goes out on the wire (plus network headers). I wonder if the size is not being set correctly by the block, or maybe the way you're checking the length isn't looking at the actual packet size? That's why I suggested wireshark as an option.
Wade On Wed, Jan 13, 2021 at 9:47 AM Rob Kossler <rkoss...@nd.edu> wrote: > Hi Wade, > Right. The block controls the packet size. But, I am attempting to verify > that my block is actually behaving properly with respect to this packet > length. In order to test this, I created a graph "host => myblock => host" > and I am looking at the packet sizes I receive on the host. However, I am > being stymied by the rx_streamer (and/or SEP) which is preventing me from > seeing the packet size output from my block because the streamer is > changing it. How, do I keep the streamer from changing it? > Rob > > On Wed, Jan 13, 2021 at 10:42 AM Wade Fife <wade.f...@ettus.com> wrote: > >> The block ultimately determines the size of the packets that are sent >> out. Some block controllers (like the radio) use the spp argument to set >> the length that the block generates. I don't know what's going on in your >> case, but I would suggest looking at how the packet length is being >> controlled by the block. You could also use wireshark to confirm the packet >> length. >> >> Wade >> >> On Tue, Jan 12, 2021 at 3:47 PM Rob Kossler via USRP-users < >> usrp-users@lists.ettus.com> wrote: >> >>> Hi, >>> I have a custom rfnoc block that I am trying to test with the graph >>> "host => myblock => host". "myblock" is supposed to output packets of a >>> given size (256) and I am trying to verify that it is doing so. However, >>> in my simple application to test this graph, I get the following behavior: >>> >>> - if I don't set "spp" in my rx_streamer args, I get packet length = >>> 1989. >>> - if I set "spp" in my rx_streamer args, I get the packet length >>> that I set. >>> - But, what I really want is to get packets of the same size as the >>> block output. >>> >>> Is this something that needs to get configured in my block controller? >>> Perhaps there is some packet forwarding policy. It's a bit confusing to >>> me. How can I keep the rx_streamer from changing the packet size that is >>> output from my block? >>> >>> Note: all sizes above are in "samples", not "bytes". >>> >>> Rob >>> _______________________________________________ >>> USRP-users mailing list >>> USRP-users@lists.ettus.com >>> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >>> >>
_______________________________________________ USRP-users mailing list USRP-users@lists.ettus.com http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com