Re: File Source - File Sink data transfer

2022-05-16 Thread Cinaed Simson

Hi Jeff - let's take this offline.

We'll use the standard xxd "hello world" example.

  echo " 4865 6c6c 6f20 776f 726c 6421 " > hex.file

  xxd -r -p hex.file > binary.file

And you can look at the binary.file using

  xxd binary.file

-- Cinaed



On 5/16/22 09:56, user 1 wrote:

Hi Steven,

Thank you for your suggestion, but /dev/urandom  is an empty file  
  See Screenshot_3



jeff

--



Le 16/05/2022 à 16:41, Steven Barbo a écrit :

Howdy Jeff.
What happens if you use /dev/urandom as file source?

On Mon, May 16, 2022 at 9:09 AM user 1 > wrote:


    Hello Cinaed,

    Unfortunately scheme doesn't work, even with a bin file.



    jeff


    --

    Le 16/05/2022 à 12:06, Cinaed Simson a écrit :
 > Hi Jeff - the error indicates the file source has the wrong data
    type,
 > i.e. it may not be binary data.
 >
 > If the input file contains hex numbers, then you need to convert
    each
 > hex number to a binary number and concatenate them.
 >
 > -- CInaed
 >
 >
 > For instance, 40 hex is equivalent to 0100 binary.
 >
 > For instance,
 >
 > On 5/16/22 00:46, user 1 wrote:
 >> Hi,
 >>
 >> Somebody could tell me why this simple scheme doesn't work 
(see the

 >> screenshots)?
 >>
 >>   File Source   --->   Throttle --->   File Sink
 >>
 >>
 >> I work under Ubuntu 20.04.4  LTS and GnuRadio 3.9.6
 >>
 >>
 >> This scheme worked fine in the past with previous releases of
    GnuRadio.
 >>
 >>
 >> Thank you for your help.
 >>
 >>
 >>
 >> Jeff
 >



--
If something is requisite, how can it possibly be, prerequisite?

vanitas vanitatum omnia vanitas
later, steve
http://umn.edu/~barbo 

Re: File Source - File Sink data transfer

2022-05-16 Thread Steven Barbo
not sure what the picture is saying...
opening /dev/urandom should give you data.
from a terminal, what happens if you issue:
sh-4.4$ ls -l /dev/urandom
crw-rw-rw- 1 root root 1, 9 Jul 30  2021 /dev/urandom
getting 1024 bytes from it:
sh-4.4$ dd if=/dev/urandom of=fred bs=1 count=1024
1024+0 records in
1024+0 records out
1024 bytes (1.0 kB, 1.0 KiB) copied, 0.00284394 s, 360 kB/s
should result in something such like:
sh-4.4$ ls -l fred
-rw-r--r-- 1 barbo barbo 1024 May 16 14:22 fred



On Mon, May 16, 2022 at 2:24 PM user 1  wrote:

> Hi Steven,
>
> Thank you for your suggestion, but /dev/urandom  is an empty file 
>See Screenshot_3
>
>
> jeff
>
> --
>
>
>
> Le 16/05/2022 à 16:41, Steven Barbo a écrit :
> > Howdy Jeff.
> > What happens if you use /dev/urandom as file source?
> >
> > On Mon, May 16, 2022 at 9:09 AM user 1  > > wrote:
> >
> > Hello Cinaed,
> >
> > Unfortunately scheme doesn't work, even with a bin file.
> >
> >
> >
> > jeff
> >
> >
> > --
> >
> > Le 16/05/2022 à 12:06, Cinaed Simson a écrit :
> >  > Hi Jeff - the error indicates the file source has the wrong data
> > type,
> >  > i.e. it may not be binary data.
> >  >
> >  > If the input file contains hex numbers, then you need to convert
> > each
> >  > hex number to a binary number and concatenate them.
> >  >
> >  > -- CInaed
> >  >
> >  >
> >  > For instance, 40 hex is equivalent to 0100 binary.
> >  >
> >  > For instance,
> >  >
> >  > On 5/16/22 00:46, user 1 wrote:
> >  >> Hi,
> >  >>
> >  >> Somebody could tell me why this simple scheme doesn't work (see
> the
> >  >> screenshots)?
> >  >>
> >  >>   File Source   --->   Throttle--->   File Sink
> >  >>
> >  >>
> >  >> I work under Ubuntu 20.04.4  LTS and GnuRadio 3.9.6
> >  >>
> >  >>
> >  >> This scheme worked fine in the past with previous releases of
> > GnuRadio.
> >  >>
> >  >>
> >  >> Thank you for your help.
> >  >>
> >  >>
> >  >>
> >  >> Jeff
> >  >
> >
> >
> >
> > --
> > If something is requisite, how can it possibly be, prerequisite?
> >
> > vanitas vanitatum omnia vanitas
> > later, steve
> > http://umn.edu/~barbo 
>


-- 
If something is requisite, how can it possibly be, prerequisite?

vanitas vanitatum omnia vanitas
later, steve
http://umn.edu/~barbo


Re: File Source - File Sink data transfer

2022-05-16 Thread user 1

Hi Steven,

Thank you for your suggestion, but /dev/urandom  is an empty file  
  See Screenshot_3



jeff

--



Le 16/05/2022 à 16:41, Steven Barbo a écrit :

Howdy Jeff.
What happens if you use /dev/urandom as file source?

On Mon, May 16, 2022 at 9:09 AM user 1 > wrote:


Hello Cinaed,

Unfortunately scheme doesn't work, even with a bin file.



jeff


--

Le 16/05/2022 à 12:06, Cinaed Simson a écrit :
 > Hi Jeff - the error indicates the file source has the wrong data
type,
 > i.e. it may not be binary data.
 >
 > If the input file contains hex numbers, then you need to convert
each
 > hex number to a binary number and concatenate them.
 >
 > -- CInaed
 >
 >
 > For instance, 40 hex is equivalent to 0100 binary.
 >
 > For instance,
 >
 > On 5/16/22 00:46, user 1 wrote:
 >> Hi,
 >>
 >> Somebody could tell me why this simple scheme doesn't work (see the
 >> screenshots)?
 >>
 >>   File Source   --->   Throttle    --->   File Sink
 >>
 >>
 >> I work under Ubuntu 20.04.4  LTS and GnuRadio 3.9.6
 >>
 >>
 >> This scheme worked fine in the past with previous releases of
GnuRadio.
 >>
 >>
 >> Thank you for your help.
 >>
 >>
 >>
 >> Jeff
 >



--
If something is requisite, how can it possibly be, prerequisite?

vanitas vanitatum omnia vanitas
later, steve
http://umn.edu/~barbo 


Re: File Source - File Sink data transfer

2022-05-16 Thread Steven Barbo
Howdy Jeff.
What happens if you use /dev/urandom as file source?

On Mon, May 16, 2022 at 9:09 AM user 1  wrote:

> Hello Cinaed,
>
> Unfortunately scheme doesn't work, even with a bin file.
>
>
>
> jeff
>
>
> --
>
> Le 16/05/2022 à 12:06, Cinaed Simson a écrit :
> > Hi Jeff - the error indicates the file source has the wrong data type,
> > i.e. it may not be binary data.
> >
> > If the input file contains hex numbers, then you need to convert each
> > hex number to a binary number and concatenate them.
> >
> > -- CInaed
> >
> >
> > For instance, 40 hex is equivalent to 0100 binary.
> >
> > For instance,
> >
> > On 5/16/22 00:46, user 1 wrote:
> >> Hi,
> >>
> >> Somebody could tell me why this simple scheme doesn't work (see the
> >> screenshots)?
> >>
> >>   File Source   --->   Throttle--->   File Sink
> >>
> >>
> >> I work under Ubuntu 20.04.4  LTS and GnuRadio 3.9.6
> >>
> >>
> >> This scheme worked fine in the past with previous releases of GnuRadio.
> >>
> >>
> >> Thank you for your help.
> >>
> >>
> >>
> >> Jeff
> >
>


-- 
If something is requisite, how can it possibly be, prerequisite?

vanitas vanitatum omnia vanitas
later, steve
http://umn.edu/~barbo


Re: File Source - File Sink data transfer

2022-05-16 Thread Cinaed Simson
Hi Jeff - the error indicates the file source has the wrong data type, 
i.e. it may not be binary data.


If the input file contains hex numbers, then you need to convert each 
hex number to a binary number and concatenate them.


-- CInaed


For instance, 40 hex is equivalent to 0100 binary.

For instance,

On 5/16/22 00:46, user 1 wrote:

Hi,

Somebody could tell me why this simple scheme doesn't work (see the 
screenshots)?


  File Source   --->   Throttle    --->   File Sink


I work under Ubuntu 20.04.4  LTS and GnuRadio 3.9.6


This scheme worked fine in the past with previous releases of GnuRadio.


Thank you for your help.



Jeff




Re: How to print a list of the frequencies that are in the spectrum?

2022-05-16 Thread Kyeong Su Shin
Hello Dor:

I guess what you are looking for is 'argmax' (or argsort, assuming Numpy and if 
you want more than one elements)?

Regards,
Kyeong Su Shin

보낸 사람: Dor Ratz  대신 Discuss-gnuradio 

보낸 날짜: 2022년 5월 16일 월요일 오후 4:11
받는 사람: discuss-gnuradio@gnu.org 
제목: How to print a list of the frequencies that are in the spectrum?

Hey,

How can I print a list of the maximal frequencies that are in the spectrum?

For example, I connect this signal source with frequency of 1KHz, so I want to 
print 1KHz:

[image.png]
There is the input_items[0], but if I try to print (max.input_items[0]) I get 
the power of incoming signal and not the frequency, so I'm not how to do it.


Thanks,

Dor


Re: How to print a list of the frequencies that are in the spectrum?

2022-05-16 Thread Kyeong Su Shin
Hello Dor:

(or more precisely, STFT -> abs() -> moving average per each frequency 
component-> argmax.)

Regards,
Kyeong Su Shin


보낸 사람: Kyeong Su Shin 
보낸 날짜: 2022년 5월 16일 월요일 오후 4:34
받는 사람: Dor Ratz ; discuss-gnuradio@gnu.org 

제목: Re: How to print a list of the frequencies that are in the spectrum?

Hello Dor:

I guess what you are looking for is 'argmax' (or argsort, assuming Numpy and if 
you want more than one elements)?

Regards,
Kyeong Su Shin

보낸 사람: Dor Ratz  대신 Discuss-gnuradio 

보낸 날짜: 2022년 5월 16일 월요일 오후 4:11
받는 사람: discuss-gnuradio@gnu.org 
제목: How to print a list of the frequencies that are in the spectrum?

Hey,

How can I print a list of the maximal frequencies that are in the spectrum?

For example, I connect this signal source with frequency of 1KHz, so I want to 
print 1KHz:

[image.png]
There is the input_items[0], but if I try to print (max.input_items[0]) I get 
the power of incoming signal and not the frequency, so I'm not how to do it.


Thanks,

Dor


Re: [SOLVED] pybind11 problems, gr::block undefined in gnuradio 3.10

2022-05-16 Thread Johannes Demel

Hi Tom,

I've seen this error before in conjunction with pybind11. The error 
indicates that the pybind11 version for your GR install and the pybind11 
version for your OOT module differ. Unfortunately, the error message is 
not helpful in that case.
I assume it doesn't hurt to switch to 22.04 and not look back. However, 
the issue got fixed in the process because all older pybind11 versions 
got eliminated.
I ran into this issue when I tried to compile my OOT against a conda 
installed GR version. I had to check which pybind11 version ships with 
conda and make sure that my OOT CMake configuration points to the 
correct version.

GR reports the required pybind11 version with:
```
gnuradio-config-info --pybind
```

Cheers
Johannes

On 15.05.22 23:40, Tom McDermott wrote:


 >>> import hpsdr
Traceback (most recent call last):
   File "", line 1, in 
   File "/usr/lib/python3.8/site-packages/gnuradio/hpsdr/__init__.py", 
line 18, in 

     from .hpsdr_python import *
ImportError: generic_type: type "hermesNB" referenced unknown base type 
"gr::block"

 >>>

The only way I found to solve this problem was to stop using Ubuntu 
20.04 Focal and move to Ubuntu 22.04 Jammy.
22.04 seems to have the latest versions of the key tools, it all built, 
and runs correctly.


I suspect this just affects pybind11,  if so folks probably would still 
be able to install the OOT
on the older version of Ubuntu, they just couldn't change anything that 
would require re-binding.


-- Tom, N5EG





How to print a list of the frequencies that are in the spectrum?

2022-05-16 Thread Dor Ratz
Hey,

How can I print a list of the maximal frequencies that are in the spectrum?

For example, I connect this signal source with frequency of 1KHz, so I want
to print 1KHz:

[image: image.png]
There is the input_items[0], but if I try to print (max.input_items[0]) I
get the power of incoming signal and not the frequency, so I'm not how to
do it.


Thanks,

Dor