Re: GNU Radio Ressources

2022-03-11 Thread Marcus Müller

Hi Abu,

sorry for the delay in getting back to you, but: What's the thing you need to simulate 
specifically?


If you need to get a headstart we really just freshly overhauled 
https://tutorials.gnuradio.org , which ideally should give you all the skills you need to 
build your own simulations!


Best regards,
Marcus

On 08.03.22 11:16, Abu Baraa wrote:

Hi everyone,
I hope this email finds you well,

I need some resources about gnuradio to prepare for my Master thesis which is about 
SDR-based image transmission in a simple DAC communication channel using USRP-2920 as 
hardware and GNU Radio Companion as Software on Linux Mint as OS.


I need just a simulation of a simple DAC digital communication channel to understand more 
about the GNU radio components (if there are explanations of each component, I'd also like 
that).


Happy to hear from you soon,
Have a nice day!




Re: building OOT module in conda

2022-03-11 Thread Ryan Volz
Hi Wayne,

You shouldn't need specifically gnuradio=3.8.2 for gr-lora_sdr (despite what 
their README says), and that fails because there was no gnuradio-build-deps 
package at the time of that release. Try it with gnuradio=3.8 instead.

You do need gnuradio-build-deps installed into your "gnuradio" environment and 
not "base" (exception: you've installed gnuradio into "base" and just want to 
just that, which I generally don't recommend).

The necessary compiler package is installed by gnuradio-build-deps, so no need 
to install cxx-compiler.

Finally, yes, run CMake on the OOT with the "gnuradio" environment active so 
that it has everything it needs.

Cheers,
Ryan

On March 10, 2022 11:38:22 PM EST, Wayne Roberts  
wrote:
>  is it possible (since the OOT needs 3.82 of gnuradio), your step 2:
>conda create -n gnuradio gnuradio=3.8.2 gnuradio-build-deps
>that results in conflicts
>
>It looks like gnuradio is installed via conda with environment gnuradio
>activated.
>But its not clear if gnuradio-build-deps needs also be installed with the
>active environment set to gnuradio vs base.
>Also cxx-compiler installed in which environment.
>And then finally, running cmake on the OOT module in the same environment.
>
>On Thu, Mar 10, 2022 at 3:13 PM Ryan Volz  wrote:
>
>> Hi Wayne,
>>
>> On 3/10/22 5:21 PM, Wayne Roberts wrote:
>> > when i say that gnuradio works on windows, that doesnt include UHD.
>> > When i plug in B100, and point windows 11 device management to the
>> unzipped erllc_uhd_winusb_driver.zip, it just ignores the contents.
>> > But run it ok in ubuntu now.
>>
>> Getting the USB driver installed for any device is always going to be an
>> external step that no GNU Radio package can help with, but if the UHD
>> documentation is not getting you there then I recommend giving the generic
>> WinUSB driver a try as documented here:
>>
>> https://github.com/ryanvolz/radioconda#windows-users-5
>>
>> >
>> > The OOT module i build and run is
>> https://github.com/tapparelj/gr-lora_sdr <
>> https://github.com/tapparelj/gr-lora_sdr>
>> > It is for 3.8.2, so i must install that version of gnuradio, and on
>> ubuntu hold back the update on package management.
>>
>> Ah, GR 3.8 might be a little trickier since the Wiki documentation has
>> been updated to correspond to 3.9/3.10. That said, nothing about that OOT
>> looks like it would necessarily make the process more difficult.
>>
>> >
>> > On windows though, with conda,  for building that I have the VS2015
>> installed and cmake finds that, but cmake stops at finding MPLIB (or MPIR)
>> on windows.
>>
>> VS2017 might be necessary, or at least have the "MSVC v141 - VS2017 C++
>> x64/x86 build tools (v14.16)" component selected for inclusion in your
>> Visual Studio installation.
>>
>> > Also note that in conda, cmake and git are not installed by default.
>> I'm not sure if base should be activated when installing cmake and git.
>>
>> Something seems off here since `mpir` and `cmake` should both be installed
>> in an environment where `gnuradio-build-deps` and `gnuradio-core` are
>> installed. `git` is not required for the build, only for how you're getting
>> the source, so it would be necessary for you to install the `git` package
>> manually.
>>
>> Let me be explicit about how I think this should work:
>>
>> 1) Start from an activated base conda environment:
>>
>>  conda activate base
>>
>> 2) Create a new environment, say "gnuradio", that contains `gnuradio` and,
>> since you want to build an OOT, `gnuradio-build-deps`.
>>
>>  conda create -n gnuradio gnuradio gnuradio-build-deps
>>
>> 3) Activate your "gnuradio" environment.
>>
>>  conda activate gnuradio
>>
>> 4) Install any extra dependencies you might need for your OOT (for
>> gr-lora_sdr it looks like that would be nothing).
>>
>>  conda install ...
>>
>> *) At this point, you should be in an environment where `mpir` and `cmake`
>> are installed.
>>
>>  conda list
>>
>> (output includes `mpir` and `cmake`)
>>
>> 5) Execute CMake and the build steps as described on the wiki.
>>
>> If you're doing all of that and it's still failing, post the CMake output
>> and `conda list` from the environment that is active when you're doing the
>> build.
>>
>> Cheers,
>> Ryan
>>


Re: building OOT module in conda

2022-03-11 Thread Wayne Roberts
yes that works fo me.
The reason i had this trouble initially is the CondaInstall on gnuradio
wiki says to activate default environment prior to running cmake.
So, i can compile it now with gnuradio environment activated.

But this OOT module includes posix header files sys/resources.h and
sys/syscalls.h, which arent available on windows, so it seem it would be a
porting job to run this OOT in windows.

thanks for your help!

On Fri, Mar 11, 2022 at 6:01 AM Ryan Volz  wrote:

> Hi Wayne,
>
> You shouldn't need specifically gnuradio=3.8.2 for gr-lora_sdr (despite
> what their README says), and that fails because there was no
> gnuradio-build-deps package at the time of that release. Try it with
> gnuradio=3.8 instead.
>
> You do need gnuradio-build-deps installed into your "gnuradio" environment
> and not "base" (exception: you've installed gnuradio into "base" and just
> want to just that, which I generally don't recommend).
>
> The necessary compiler package is installed by gnuradio-build-deps, so no
> need to install cxx-compiler.
>
> Finally, yes, run CMake on the OOT with the "gnuradio" environment active
> so that it has everything it needs.
>
> Cheers,
> Ryan
>
> On March 10, 2022 11:38:22 PM EST, Wayne Roberts 
> wrote:
>>
>>   is it possible (since the OOT needs 3.82 of gnuradio), your step 2:
>> conda create -n gnuradio gnuradio=3.8.2 gnuradio-build-deps
>> that results in conflicts
>>
>> It looks like gnuradio is installed via conda with environment gnuradio
>> activated.
>> But its not clear if gnuradio-build-deps needs also be installed with
>> the active environment set to gnuradio vs base.
>> Also cxx-compiler installed in which environment.
>> And then finally, running cmake on the OOT module in the same environment.
>>
>> On Thu, Mar 10, 2022 at 3:13 PM Ryan Volz  wrote:
>>
>>> Hi Wayne,
>>>
>>> On 3/10/22 5:21 PM, Wayne Roberts wrote:
>>> > when i say that gnuradio works on windows, that doesnt include UHD.
>>> > When i plug in B100, and point windows 11 device management to the
>>> unzipped erllc_uhd_winusb_driver.zip, it just ignores the contents.
>>> > But run it ok in ubuntu now.
>>>
>>> Getting the USB driver installed for any device is always going to be an
>>> external step that no GNU Radio package can help with, but if the UHD
>>> documentation is not getting you there then I recommend giving the generic
>>> WinUSB driver a try as documented here:
>>>
>>> https://github.com/ryanvolz/radioconda#windows-users-5
>>>
>>> >
>>> > The OOT module i build and run is
>>> https://github.com/tapparelj/gr-lora_sdr <
>>> https://github.com/tapparelj/gr-lora_sdr>
>>> > It is for 3.8.2, so i must install that version of gnuradio, and on
>>> ubuntu hold back the update on package management.
>>>
>>> Ah, GR 3.8 might be a little trickier since the Wiki documentation has
>>> been updated to correspond to 3.9/3.10. That said, nothing about that OOT
>>> looks like it would necessarily make the process more difficult.
>>>
>>> >
>>> > On windows though, with conda,  for building that I have the VS2015
>>> installed and cmake finds that, but cmake stops at finding MPLIB (or MPIR)
>>> on windows.
>>>
>>> VS2017 might be necessary, or at least have the "MSVC v141 - VS2017 C++
>>> x64/x86 build tools (v14.16)" component selected for inclusion in your
>>> Visual Studio installation.
>>>
>>> > Also note that in conda, cmake and git are not installed by default.
>>> I'm not sure if base should be activated when installing cmake and git.
>>>
>>> Something seems off here since `mpir` and `cmake` should both be
>>> installed in an environment where `gnuradio-build-deps` and `gnuradio-core`
>>> are installed. `git` is not required for the build, only for how you're
>>> getting the source, so it would be necessary for you to install the `git`
>>> package manually.
>>>
>>> Let me be explicit about how I think this should work:
>>>
>>> 1) Start from an activated base conda environment:
>>>
>>>  conda activate base
>>>
>>> 2) Create a new environment, say "gnuradio", that contains `gnuradio`
>>> and, since you want to build an OOT, `gnuradio-build-deps`.
>>>
>>>  conda create -n gnuradio gnuradio gnuradio-build-deps
>>>
>>> 3) Activate your "gnuradio" environment.
>>>
>>>  conda activate gnuradio
>>>
>>> 4) Install any extra dependencies you might need for your OOT (for
>>> gr-lora_sdr it looks like that would be nothing).
>>>
>>>  conda install ...
>>>
>>> *) At this point, you should be in an environment where `mpir` and
>>> `cmake` are installed.
>>>
>>>  conda list
>>>
>>> (output includes `mpir` and `cmake`)
>>>
>>> 5) Execute CMake and the build steps as described on the wiki.
>>>
>>> If you're doing all of that and it's still failing, post the CMake
>>> output and `conda list` from the environment that is active when you're
>>> doing the build.
>>>
>>> Cheers,
>>> Ryan
>>>
>>


Re: GNU Radio Ressources

2022-03-11 Thread Abu Baraa
I will explain more. I need to make two softwares which interact with
each other by sending data (E.g: image, video,...) using GNU Radio
Companion. The first is the sender and the second is the receiver which are
composed by GNU Radio Blocks to build a communication channel like the
following:

1/ (Sender): Signal Source -> (Modulation, Encoding, Filtering...) ->
Antenna.

2/ (Receiver): Antenna -> (Demodulation, Decoding, Filtering...) -> Sink.

Briefly I am looking for ressources, examples of communication channel and
documentation about gnu radio blocks. I have already finished with the GNU
Radio tutorial that you sent me.

Thank you in advance,

Have a nice day Sir,

On Fri, 11 Mar 2022, 11:36 Marcus Müller,  wrote:

> Hi Abu,
>
> sorry for the delay in getting back to you, but: What's the thing you need
> to simulate
> specifically?
>
> If you need to get a headstart we really just freshly overhauled
> https://tutorials.gnuradio.org , which ideally should give you all the
> skills you need to
> build your own simulations!
>
> Best regards,
> Marcus
>
> On 08.03.22 11:16, Abu Baraa wrote:
> > Hi everyone,
> > I hope this email finds you well,
> >
> > I need some resources about gnuradio to prepare for my Master thesis
> which is about
> > SDR-based image transmission in a simple DAC communication channel using
> USRP-2920 as
> > hardware and GNU Radio Companion as Software on Linux Mint as OS.
> >
> > I need just a simulation of a simple DAC digital communication channel
> to understand more
> > about the GNU radio components (if there are explanations of each
> component, I'd also like
> > that).
> >
> > Happy to hear from you soon,
> > Have a nice day!
>


Re: building OOT module in conda

2022-03-11 Thread Ryan Volz

Hi Wayne,

I think I see where the confusion occurs in what the wiki says, so I've just 
made some edits to hopefully make it clearer.

It does look like some porting would be necessary for gr-lora_sdr, 
unfortunately. Sometimes it's possible to use IFDEFs and substitute in the 
appropriate Windows thing, and sometimes more substantial edits are necessary. 
I always have to turn to Google in these cases. Good luck!

Cheers,
Ryan

On 3/11/22 10:30 AM, Wayne Roberts wrote:

yes that works fo me.
The reason i had this trouble initially is the CondaInstall on gnuradio wiki 
says to activate default environment prior to running cmake.
So, i can compile it now with gnuradio environment activated.

But this OOT module includes posix header files sys/resources.h and 
sys/syscalls.h, which arent available on windows, so it seem it would be a 
porting job to run this OOT in windows.

thanks for your help!

On Fri, Mar 11, 2022 at 6:01 AM Ryan Volz mailto:ryan.v...@gmail.com>> wrote:

Hi Wayne,

You shouldn't need specifically gnuradio=3.8.2 for gr-lora_sdr (despite 
what their README says), and that fails because there was no 
gnuradio-build-deps package at the time of that release. Try it with 
gnuradio=3.8 instead.

You do need gnuradio-build-deps installed into your "gnuradio" environment and not 
"base" (exception: you've installed gnuradio into "base" and just want to just that, 
which I generally don't recommend).

The necessary compiler package is installed by gnuradio-build-deps, so no 
need to install cxx-compiler.

Finally, yes, run CMake on the OOT with the "gnuradio" environment active 
so that it has everything it needs.

Cheers,
Ryan

On March 10, 2022 11:38:22 PM EST, Wayne Roberts mailto:wroberts92...@gmail.com>> wrote:

   is it possible (since the OOT needs 3.82 of gnuradio), your step 2:
     conda create -n gnuradio gnuradio=3.8.2 gnuradio-build-deps
that results in conflicts

It looks like gnuradio is installed via conda with environment gnuradio 
activated.
But its not clear if gnuradio-build-deps needs also be installed with 
the active environment set to gnuradio vs base.
Also cxx-compiler installed in which environment.
And then finally, running cmake on the OOT module in the same 
environment.

On Thu, Mar 10, 2022 at 3:13 PM Ryan Volz mailto:ryan.v...@gmail.com>> wrote:

Hi Wayne,

On 3/10/22 5:21 PM, Wayne Roberts wrote:
 > when i say that gnuradio works on windows, that doesnt include 
UHD.
 > When i plug in B100, and point windows 11 device management to 
the unzipped erllc_uhd_winusb_driver.zip, it just ignores the contents.
 > But run it ok in ubuntu now.

Getting the USB driver installed for any device is always going to 
be an external step that no GNU Radio package can help with, but if the UHD 
documentation is not getting you there then I recommend giving the generic 
WinUSB driver a try as documented here:

https://github.com/ryanvolz/radioconda#windows-users-5 


 >
 > The OOT module i build and run is https://github.com/tapparelj/gr-lora_sdr 
 >
 > It is for 3.8.2, so i must install that version of gnuradio, and 
on ubuntu hold back the update on package management.

Ah, GR 3.8 might be a little trickier since the Wiki documentation 
has been updated to correspond to 3.9/3.10. That said, nothing about that OOT 
looks like it would necessarily make the process more difficult.

 >
 > On windows though, with conda,  for building that I have the 
VS2015 installed and cmake finds that, but cmake stops at finding MPLIB (or MPIR) 
on windows.

VS2017 might be necessary, or at least have the "MSVC v141 - VS2017 C++ 
x64/x86 build tools (v14.16)" component selected for inclusion in your Visual Studio 
installation.

 > Also note that in conda, cmake and git are not installed by 
default.  I'm not sure if base should be activated when installing cmake and git.

Something seems off here since `mpir` and `cmake` should both be 
installed in an environment where `gnuradio-build-deps` and `gnuradio-core` are 
installed. `git` is not required for the build, only for how you're getting the 
source, so it would be necessary for you to install the `git` package manually.

Let me be explicit about how I think this should work:

1) Start from an activated base conda environment:

      conda activate base

2) Create a new environment, say "gnuradio", that contains 
`gnuradio` and, since you want to build an OOT, `gnuradio-build-deps`.

      conda create -n gnuradio gnuradio

wavfile source block issue

2022-03-11 Thread Alejandro del Hoyo Vijande
Good afternoon,

My name is Alejandro. A few days ago I run into a problem when trying to
use the wav file source block. I am unable to find either "wav file soruce"
or "wav file sink" blocks among the GNU Radio default block library. I read
online that this issue could be related to the dependencies installed in my
laptop, but after running the "sudo apt install" command for the
dependencies that were missing the problem was still there... Apart from
this, my console shows no errors when running the scripts. Also, I am able
to see the .cc and .h files related to this block inside gr-blocks
directory. What else can I do?

I hope someone could help me with this.
Thank you all in advanced!


Best regards,
Alejandro.


Re: wavfile source block issue

2022-03-11 Thread Marcus Müller

Hi Alejandro,

what version of GNU Radio do you have, and how did you install it?

Best regards,
Marcus

On 11.03.22 18:22, Alejandro del Hoyo Vijande wrote:

Good afternoon,

My name is Alejandro. A few days ago I run into a problem when trying to use the wav file 
source block. I am unable to find either "wav file soruce" or "wav file sink" blocks among 
the GNU Radio default block library. I read online that this issue could be related to the 
dependencies installed in my laptop, but after running the "sudo apt install" command for 
the dependencies that were missing the problem was still there... Apart from this, my 
console shows no errors when running the scripts. Also, I am able to see the .cc and .h 
files related to this block inside gr-blocks directory. What else can I do?


I hope someone could help me with this.
Thank you all in advanced!


Best regards,
Alejandro.




Re: GNU Radio Ressources

2022-03-11 Thread Marcus Müller

Hi!

That really sounds like our tutorials are what you want to read, from start of the 
"Beginner Tutorials" to end of the "Intermediate / Advanced Tutorials". You're exactly the 
kind of person these were written for.


Best regards,
Marcus

On 11.03.22 17:21, Abu Baraa wrote:
I will explain more. I need to make two softwares which interact with each other by 
sending data (E.g: image, video,...) using GNU Radio Companion. The first is the sender 
and the second is the receiver which are composed by GNU Radio Blocks to build a 
communication channel like the following:


1/ (Sender): Signal Source -> (Modulation, Encoding, Filtering...) -> Antenna.

2/ (Receiver): Antenna -> (Demodulation, Decoding, Filtering...) -> Sink.

Briefly I am looking for ressources, examples of communication channel and documentation 
about gnu radio blocks. I have already finished with the GNU Radio tutorial that you sent me.


Thank you in advance,

Have a nice day Sir,

On Fri, 11 Mar 2022, 11:36 Marcus Müller, > wrote:


Hi Abu,

sorry for the delay in getting back to you, but: What's the thing you need 
to simulate
specifically?

If you need to get a headstart we really just freshly overhauled
https://tutorials.gnuradio.org  , which 
ideally should
give you all the skills you need to
build your own simulations!

Best regards,
Marcus

On 08.03.22 11:16, Abu Baraa wrote:
 > Hi everyone,
 > I hope this email finds you well,
 >
 > I need some resources about gnuradio to prepare for my Master thesis 
which is about
 > SDR-based image transmission in a simple DAC communication channel using 
USRP-2920 as
 > hardware and GNU Radio Companion as Software on Linux Mint as OS.
 >
 > I need just a simulation of a simple DAC digital communication channel to
understand more
 > about the GNU radio components (if there are explanations of each 
component, I'd
also like
 > that).
 >
 > Happy to hear from you soon,
 > Have a nice day!





Re: GNU Radio Ressources

2022-03-11 Thread Abu Baraa
Thanks Marcus.  I'll follow the intermediate tutorial because I've finished
with beginner tuto.

Thanks again!

On Fri, 11 Mar 2022, 19:55 Marcus Müller,  wrote:

> Hi!
>
> That really sounds like our tutorials are what you want to read, from
> start of the
> "Beginner Tutorials" to end of the "Intermediate / Advanced Tutorials".
> You're exactly the
> kind of person these were written for.
>
> Best regards,
> Marcus
>
> On 11.03.22 17:21, Abu Baraa wrote:
> > I will explain more. I need to make two softwares which interact with
> each other by
> > sending data (E.g: image, video,...) using GNU Radio Companion. The
> first is the sender
> > and the second is the receiver which are composed by GNU Radio Blocks to
> build a
> > communication channel like the following:
> >
> > 1/ (Sender): Signal Source -> (Modulation, Encoding, Filtering...) ->
> Antenna.
> >
> > 2/ (Receiver): Antenna -> (Demodulation, Decoding, Filtering...) -> Sink.
> >
> > Briefly I am looking for ressources, examples of communication channel
> and documentation
> > about gnu radio blocks. I have already finished with the GNU Radio
> tutorial that you sent me.
> >
> > Thank you in advance,
> >
> > Have a nice day Sir,
> >
> > On Fri, 11 Mar 2022, 11:36 Marcus Müller,  > > wrote:
> >
> > Hi Abu,
> >
> > sorry for the delay in getting back to you, but: What's the thing
> you need to simulate
> > specifically?
> >
> > If you need to get a headstart we really just freshly overhauled
> > https://tutorials.gnuradio.org  ,
> which ideally should
> > give you all the skills you need to
> > build your own simulations!
> >
> > Best regards,
> > Marcus
> >
> > On 08.03.22 11:16, Abu Baraa wrote:
> >  > Hi everyone,
> >  > I hope this email finds you well,
> >  >
> >  > I need some resources about gnuradio to prepare for my Master
> thesis which is about
> >  > SDR-based image transmission in a simple DAC communication
> channel using USRP-2920 as
> >  > hardware and GNU Radio Companion as Software on Linux Mint as OS.
> >  >
> >  > I need just a simulation of a simple DAC digital communication
> channel to
> > understand more
> >  > about the GNU radio components (if there are explanations of each
> component, I'd
> > also like
> >  > that).
> >  >
> >  > Happy to hear from you soon,
> >  > Have a nice day!
> >
>
>