Re: sndfile::sndfile again

2022-12-29 Thread Cinaed Simson

The

  libsndfile1-dev

installs the header files.

In general, the -dev extension installs the header files and sometimes the 
static libraries.

It most likely crashed because of the lack of header files - it found the 
dynamic libraries which where installed with gnuradio - but no header files.

Since you're building from source, you need to supply the header files.

- Cinaed


On 12/29/22 21:19, Larry Doolittle wrote:

Cinaed -

On Wed, Dec 28, 2022 at 06:31:17PM -0800, Cinaed Simson wrote:

Hi Larry - try
   apt install libsndfile1-dev

Yes, I confirm that is the solution.  Thanks!
Although it's more practical to
   apt-get install --no-install-recommends libsndfile1-dev
to keep xtrx-dkms out of it.  Both specifically because of
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012616
   xtrx-dkms: DKMS build fails with implicit declaration of functions
and philosophically to keep unused dependencies out of my system.


Since you installed gnuradio form Debian, you can always install gr-osmosdr
from Debian and it will match your gnuradio install.

True!  Although I then needed libsndfile1-dev for the next
builds on my list,
   gr-pdu_utils
   gr-sandia_utils
   gr-timing_utils
   gr-fhss_utils

I also admit I'm still baffled how this missing dependency caused
cmake to crash trying to link (g++) with -l sndfile::sndfile.

   - Larry





Re: sndfile::sndfile again

2022-12-29 Thread Larry Doolittle
Cinaed -

On Wed, Dec 28, 2022 at 06:31:17PM -0800, Cinaed Simson wrote:
> Hi Larry - try
>   apt install libsndfile1-dev

Yes, I confirm that is the solution.  Thanks!
Although it's more practical to
  apt-get install --no-install-recommends libsndfile1-dev
to keep xtrx-dkms out of it.  Both specifically because of
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012616
  xtrx-dkms: DKMS build fails with implicit declaration of functions
and philosophically to keep unused dependencies out of my system.

> Since you installed gnuradio form Debian, you can always install gr-osmosdr
> from Debian and it will match your gnuradio install.

True!  Although I then needed libsndfile1-dev for the next
builds on my list,
  gr-pdu_utils
  gr-sandia_utils
  gr-timing_utils
  gr-fhss_utils

I also admit I'm still baffled how this missing dependency caused
cmake to crash trying to link (g++) with -l sndfile::sndfile.

  - Larry



Re: USRP B210 overflow and underflow

2022-12-29 Thread Marcus D. Leech

On 29/12/2022 10:56, Karen young wrote:

Hi,

I am using a USRP B210 to transmit and receive pulse signals using 
attached antennas, and try to measure the phase delay between the 
transmitted and received signals. I do not understand why the 
following problems are happening. What can I do to fix them? Attached 
is the model.


1. The usrp_source overflow and usrp_sink underflow errors occur 
frequently, the received signal (in Red) is jumping accordingly as 
shown in Fig 1.


2. Since the transmitted signal is positive pulse, I am expecting the 
received signal is also positive. While the received signals are: 
sometimes positive peak, sometimes negative peaks as shown in Fig 2.


Thanks
Karen
Overruns and Underruns are caused by your computer being unable to "keep 
up" with the sample streaming requirements of

  the hardware.

You might add:

num_recv_frames=256
num_send_frames=256

To your device arguments, which can help "ride through" short-term 
performance insufficiency.