Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4)

2022-10-04 Thread Vasil Velichkov
Hi Michael,

Your problem looks a lot like one described in the USRP manual 
https://files.ettus.com/manual/page_build_guide.html#generate_unix

> If you encounter this issue, ensure that /usr/bin appears before /bin in the 
> PATH environment variable of the process executing CMake. Alternatively, you 
> can pass the CMAKE_FIND_ROOT_PATH configuration variable to CMake with a 
> value of /usr to point it to the right starting directory for filesystem item 
> searches.
> 
> Example usage:
> 
> cmake -DCMAKE_FIND_ROOT_PATH=/usr ../

Regards,
Vasil

On 03/10/2022 21.12, Michael Matthews wrote:
> Hi Vasil,
> 
> I installed gnuradio from the ppa. Specifically, I did:
> 
>  $ sudo add-apt-repository ppa:gnuradio/gnuradio-releases
>  $ sudo apt-get update
>  $ sudo apt-get install gnuradio python3-packaging
>  $ sudo apt install libiio-dev libad9361-dev libspdlog-dev 
> python3-packaging python3-jsonschema
>  $ sudo apt-get install gnuradio-dev cmake libspdlog-dev clang-format
> 
> The instillation wiki does note that the python packaging module might need 
> to 
> be installed using pip for 3.10. Running that installation just tells me that 
> "the requirement is already satisfied" so I believe it is already up to date. 
> It 
> is also mentioned on Ubuntu 18.04 there is an issue with gr_modtool when 
> installed from the PPA, but it says the issue is not appearing for Ubuntu 19 
> and 
> later.
> 
> As far as the date_time dependency is concerned, I am unsure where that is 
> being 
> used. I did not import it myself. The Cmake was procedurally generated using 
> the 
> gr-modtool, following the tutorial exactly. The tutorial is fairly simple, 
> adding a boolean selector, which determines whether two input values should 
> either be multiplied or divided with:
> 
> {
>  auto in0 = static_cast(input_items[0]);
>  auto in1 = static_cast(input_items[1]);
>  auto out = static_cast(output_items[0]);
> 
>  for (int index = 0; index < noutput_items; index++) {
>  if (_selector) { out[index] = in0[index] * in1[index]; }
>  else{ out[index] = in0[index] / in1[index]; }
>  }
> 
>  // Tell runtime system how many output items we produced.
>  return noutput_items;
> }
> 
> Thank you for your help,
> 
> Michael Matthews
> Graduate Software Engineer
> Mobile: +1 847 714 4809
> 
>   
> Micro-X 
> 
> 855 South 192nd St, Suite 600
> SeaTac, WA, 98148, United States
> *www.micro-x.com *
> 
> 
> -Original Message-
> From: Vasil Velichkov 
> Sent: Monday, October 3, 2022 8:47 AM
> To: Michael Matthews ; discuss-gnuradio@gnu.org
> Subject: Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4)
> 
> Hi Michael,
> 
> On 03/10/2022 08.21, Michael Matthews wrote:
>  > Hello,
>  >
>  > I am new to gnuradio and have been going through the tutorials. I have 
> been 
> specifically interested in Creating C++  OOT with 
> gr-modtool
>  
> but I seem to be getting errors when trying to use cmake to create the make 
> files.
> 
>  > CMake Error in lib/CMakeLists.txt:
>  >   Imported target "gnuradio::gnuradio-runtime" includes non-existent path
>  >
>  > "/include"
>  >
>  >   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
> 
> You are probably missing some development dependency installed on your 
> system. 
> How did you install gnuradio 3.10.4 - from the ppa, from source, ...?
> 
>  > CMake Error in python/customModule/bindings/CMakeLists.txt:
>  >   Imported target "Boost::date_time" includes non-existent path
>  >
>  > "/include"
>  >
>  >   in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:
> 
> This Boost::data_time dependency is a bit strange. Have you tried adding this 
> to 
> your OOT module?
> 
> Regards,
> Vasil
> 




Adding python functions to OOT module

2022-10-04 Thread jason duchez
I'm trying to add python functions to a custom OOT module and am having issues 
importing the module into gnuradio-companion.  If I add the module name to an 
import block, I get an error saying the import failed.  I have followed the 
tutorial at:
https://wiki.gnuradio.org/index.php/TutorialPythonFunctions 

Any help would be appreciated.



Re: Adding python functions to OOT module

2022-10-04 Thread Brandon Smith
Check your PYTHONPATH variable. You may have your OOT in something like
/usr/lib/python3.x/site-packages/ and it's not in your default path.

- Brandon Smith


On Tue, Oct 4, 2022 at 9:34 AM jason duchez  wrote:

> I'm trying to add python functions to a custom OOT module and am having
> issues importing the module into gnuradio-companion.  If I add the module
> name to an import block, I get an error saying the import failed.  I have
> followed the tutorial at:
>
> https://wiki.gnuradio.org/index.php/TutorialPythonFunctions
>
> Any help would be appreciated.
>
>
>


Re: Adding python functions to OOT module

2022-10-04 Thread jason duchez
 Got it working.  It was related to the path.  I needed to use import 
gnuradio.myModule.  Initially I was using import myModule.
Thanks for the reply,Jason
On Tuesday, October 4, 2022 at 09:45:29 AM EDT, Brandon Smith 
 wrote:  
 
 Check your PYTHONPATH variable. You may have your OOT in something like 
/usr/lib/python3.x/site-packages/ and it's not in your default path.
- Brandon Smith

On Tue, Oct 4, 2022 at 9:34 AM jason duchez  wrote:

I'm trying to add python functions to a custom OOT module and am having issues 
importing the module into gnuradio-companion.  If I add the module name to an 
import block, I get an error saying the import failed.  I have followed the 
tutorial at:
https://wiki.gnuradio.org/index.php/TutorialPythonFunctions 

Any help would be appreciated.


  

re: [GSoC porting SIMD to gr-web] weekly update

2022-10-04 Thread 史 皓航
Hi, all!

I am working on enabling gnuradio to run faster on the browser through `simd on 
wasm` named under the GSoC project.

I am thrilled that I passed the GSoC final stage evaluation.
Thanks to the community all, especially  @ Håkon   
@Marc   @Marcus 
  (list in alphabetical order).

They give me much help either technical or non-technical(inspire me in moments) 
(hahaha)

I will keep on the gnuradio/volk feature issue, and wait for later CPython 
official support building.

Draft pr link: https://github.com/marcnewlin/gnuradio-web/pull/2
Note: This pr is going to be in the draft since the upstream qt_gui  has not 
fully finished, there lack of some features to be implemented which are related 
to gr-web.
Well, back to `accelerate the wasm` through simd or strip simple to reduce load 
size, which still has a long long way to go.
Also, there opened an issue talking about the CI/CD docker deployed strategy.
detailed: [build][CI/CD] enable each time push will generate a new page to test 
· Issue #3 · marcnewlin/gnuradio-web 
(github.com)
Any comment or advice is welcome!
Yous,
Yao.

发件人: 史 皓航
发送时间: 2022年9月16日 00:48
主题: re: [GSoC porting SIMD to gr-web] weekly update

Dear all!

I am working on enabling gnuradio to run faster on the browser through `simd on 
wasm`.
I will post weekly updates in this thread(sorry there lost 2 weeks’ logs). The 
following is from last week:

Short version:
Have uploaded a wiki page to try to grab the basic gnuradio-web workflow and 
the main method in accelerate gnuradio-web
Wiki page: page here 


Full version blog: blog here

Yours,
Yao.





发件人: 史 皓航
发送时间: 2022年8月24日 23:29
收件人: discuss-gnuradio@gnu.org
主题: re: [GSoC porting SIMD to gr-web] weekly update

Hi, everyone!

I am working on enabling gnuradio to run faster on the browser through `simd on 
wasm`.
I will post weekly updates in this thread. The following is from last week:

Short version report:
Later plan:

1. Develop those missing components in gr-web (making it more extensible)

2. To support `simd on wasm` this project will go slow pace.


Full version blog: blog here


Yours,
Yao

发件人: 史 皓航
发送时间: 2022年8月16日 23:37
收件人: discuss-gnuradio@gnu.org
主题: re: [GSoC porting SIMD to gr-web] weekly update

Hi, everyone!

I am working on enabling gnuradio to run faster on the browser through `simd on 
wasm`.
I will post weekly updates in this thread. The following is from last week:

Short version report:
Has Done:
   1. Building debug mode `CPython`.
2. Compare the `webapp` directory output files. (not fully finish)
3. Use `wasm2wat` to ensure `volk` is really under `wasm-simd`.

Delay and TODO in this week:
2. Compare the `webapp` directory output files.
4. Enabling open and save files for user-selected paths in gr-web.

Full version blog: blog here


Yours,
Yao

发件人: 史 皓航
发送时间: 2022年8月9日 23:34
收件人: discuss-gnuradio@gnu.org
主题: re: [GSoC porting SIMD to gr-web] weekly update

Hi, everyone!

I am working on enabling gnuradio to run faster on the browser through `simd on 
wasm`.
I will post weekly updates in this thread. The following is from last week:

Short version report:
Has Done:
Building with `volk`  `wasm-simd` success, running fail.

TODO:
1. Building debug mode `CPython`.
2. Compare the `webapp` directory output files.
3. Use `wasm2wat` to ensure `volk` is really under `wasm-simd`.
4. Enabling open and save files for user-selected paths in gr-web.

Full version blog: blog here


Yours,
Yao

发件人: 史 皓航
发送时间: 2022年8月2日 23:56
收件人: discuss-gnuradio@gnu.org
主题: re: [GSoC porting SIMD to gr-web] weekly update

Hi, everyone!

I am working on enabling gnuradio run faster on browser.
I will post weekly update in this thread. Following is last week:

Short version report:
 Has Done:
running flow graph again success
TODO:
1. Transplant volk to wasm-simd building
2. Enable edit module in flow graph on gnuradio-web (current not support edit 
module).

Full version blog: blog here


Yours,
Yao




发件人: 史 皓航 
发送时间: Monday, July 25, 2022 10:24:15 PM
收件人: discuss-gnuradio@gnu.org 
主题: 回复: [GSoC porting SIMD to gr-web] weekly update


Hi, all!



I will post weekly this project update in th

Re: Promblems with gr-air-modes in gnuradio 3.10

2022-10-04 Thread Michelle
Please could you do it? gr-air-modes and gr-adsb are the only 
applications with which it is possible to decode using USRP as 
receivers. And both have lower versions of gnuradio than mine (3.10.4.0 ).


On 2022-10-03 15:14, Nick Foster wrote:
Yep, gr-air-modes hasn't been built, installed, or tested by me. Needs 
the usual rebuild-from-gr-modtool, and I haven't gotten around to it.


Nick

On Mon, Oct 3, 2022 at 11:52 AM Philip Balister  
wrote:


On 10/3/22 09:34, Michelle wrote:
> Hi Cinaed,
>
> thank you for your answer, It seems like modes_rx (gr3.9 branch)
under
> GNU Radio 3.10 hangs somewhere on startup. @willcode4 will try
to debug
> it.

https://github.com/bkerler/gnuradio_install/blob/main/install.sh#L275

Suggests this is not fully ported to 3.10 yet.

Philip


>
> have a good day.
>
> On 2022-10-02 19:52, Cinaed Simson wrote:
>> Hi Michelle - the  source code version of gr-air-modes from github
>>
>> https://github.com/bistromath/gr-air-modes.git
>>
>> indicates it should build under 3.9 but it doesn't build 3.10 - it
>> can't find
>>
>>   GrSwig
>>
>> which is no longer supported.
>>
>> Sometimes OOT modules which work on 3.9 work on 3.10 -
sometimes they
>> don't.
>>
>> It's possible your version gr-air-modes has a different author
from
>> git hub version above.
>>
>> And I don't have a version of 3.9 either so I can't test it on
3.9 .
>>
>> -- Cinaed
>>
>>
>>
>> On 10/1/22 05:18, Michelle wrote:
>>> Hello,
>>>
>>> I have gnuradio 3.10 and I wanted to install gr-air-modes. In the
>>> chat one of the moderators told me the version of gr-air-modes
that
>>> is compatible with gr3.9 would work with gr3.10.
>>> So I installed this version in my computer, the installation was
>>> successfull however when I execute rx_modes I do not receive any
>>> signal. The output of the command is :
>>>
>>> Inspiron-3793:~$ modes_rx
>>> gr-air-modes warning: numpy+scipy not installed, FlightGear
interface
>>> not supported
>>> [INFO] [UHD] linux; GNU C++ version 9.2.1 20200304; Boost_107100;
>>> UHD_3.15.0.0-2build5
>>> [INFO] [B200] Loading firmware image:
>>> /usr/share/uhd/images/usrp_b200_fw.hex...
>>> [INFO] [B200] Detected Device: B200
>>> [INFO] [B200] Loading FPGA image:
>>> /usr/share/uhd/images/usrp_b200_fpga.bin...
>>> [INFO] [B200] Operating over USB 2.
>>> [INFO] [B200] Detecting internal GPSDO
>>> [INFO] [GPS] No GPSDO found
>>> [INFO] [B200] Initialize CODEC control...
>>> [INFO] [B200] Initialize Radio control...
>>> [INFO] [B200] Performing register loopback test...
>>> [INFO] [B200] Register loopback test passed
>>> [INFO] [B200] Setting master clock rate selection to 'automatic'.
>>> [INFO] [B200] Asking for clock rate 16.00 MHz...
>>> [INFO] [B200] Actually got clock rate 16.00 MHz.
>>> [INFO] [B200] Asking for clock rate 32.00 MHz...
>>> [INFO] [B200] Actually got clock rate 32.00 MHz.
>>> Setting gain to 38
>>> Gain is 38
>>> Rate is 400
>>>
>>> please can i get some support to solve this problem?
>>>
>>>
>>
>>
>


RE: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4)

2022-10-04 Thread Michael Matthews


Hi Vasil, 

It seems like moving /usr/bin before /bin in the PATH variable did not fix the issue with CMake. However, defining CMAKE_FIND_ROOT_PATH did! 

Thank you so much for your help!

  	  		 
  		  		
	
		Michael Matthews 
		Graduate Software Engineer
		Mobile: +1 847 714 4809
	
	
	


	
		855 South 192nd St, Suite 600SeaTac, WA, 98148, United Stateswww.micro-x.com

			
		
-Original Message-
From: Vasil Velichkov  
Sent: Tuesday, October 4, 2022 12:38 AM
To: Michael Matthews ; discuss-gnuradio@gnu.org
Subject: Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 3.10.4)

Hi Michael,

Your problem looks a lot like one described in the USRP manual https://aus01.safelinks.protection.outlook.com/?url="">

> If you encounter this issue, ensure that /usr/bin appears before /bin in the PATH environment variable of the process executing CMake. Alternatively, you can pass the CMAKE_FIND_ROOT_PATH configuration variable to CMake with a value of /usr to point it to the right starting directory for filesystem item searches.
> 
> Example usage:
> 
> cmake -DCMAKE_FIND_ROOT_PATH=/usr ../

Regards,
Vasil

On 03/10/2022 21.12, Michael Matthews wrote:
> Hi Vasil,
> 
> I installed gnuradio from the ppa. Specifically, I did:
> 
>  $ sudo add-apt-repository ppa:gnuradio/gnuradio-releases
>  $ sudo apt-get update
>  $ sudo apt-get install gnuradio python3-packaging
>  $ sudo apt install libiio-dev libad9361-dev libspdlog-dev 
> python3-packaging python3-jsonschema
>  $ sudo apt-get install gnuradio-dev cmake libspdlog-dev 
> clang-format
> 
> The instillation wiki does note that the python packaging module might 
> need to be installed using pip for 3.10. Running that installation 
> just tells me that "the requirement is already satisfied" so I believe 
> it is already up to date. It is also mentioned on Ubuntu 18.04 there 
> is an issue with gr_modtool when installed from the PPA, but it says 
> the issue is not appearing for Ubuntu 19 and later.
> 
> As far as the date_time dependency is concerned, I am unsure where 
> that is being used. I did not import it myself. The Cmake was 
> procedurally generated using the gr-modtool, following the tutorial 
> exactly. The tutorial is fairly simple, adding a boolean selector, 
> which determines whether two input values should either be multiplied or divided with:
> 
> {
>  auto in0 = static_cast(input_items[0]);
>  auto in1 = static_cast(input_items[1]);
>  auto out = static_cast(output_items[0]);
> 
>  for (int index = 0; index < noutput_items; index++) {
>  if (_selector) { out[index] = in0[index] * in1[index]; }
>  else{ out[index] = in0[index] / in1[index]; }
>  }
> 
>  // Tell runtime system how many output items we produced.
>  return noutput_items;
> }
> 
> Thank you for your help,
> 
> Michael Matthews
> Graduate Software Engineer
> Mobile: +1 847 714 4809
> 
>    
> Micro-X 
> 
> ro-x.com%2F&data="">
> d01189208daa5db7055%7Cad206e7b8a5d4d9aabf6ab3a9fd2c934%7C0%7C0%7C63800
> 4659156189845%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2lu
> MzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=eY8dK4LtU
> HvSpmOch4OyWk3LUeiBkeBD2o1UmPpWw1E%3D&reserved=0>
> 
> 855 South 192nd St, Suite 600
> SeaTac, WA, 98148, United States
> *https://aus01.safelinks.protection.outlook.com/?url="">
> micro-x.com%2F&data="">
> 504d01189208daa5db7055%7Cad206e7b8a5d4d9aabf6ab3a9fd2c934%7C0%7C0%7C63
> 8004659156189845%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV
> 2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0LT37R
> kRdxhOeTjy26SXy3%2F%2BaaTqryj3%2BWNuMxCCdqI%3D&reserved=0 
> 
> ro-x.com%2F&data="">
> d01189208daa5db7055%7Cad206e7b8a5d4d9aabf6ab3a9fd2c934%7C0%7C0%7C63800
> 4659156189845%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2lu
> MzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=eY8dK4LtU
> HvSpmOch4OyWk3LUeiBkeBD2o1UmPpWw1E%3D&reserved=0>*
> 
> 
> -Original Message-
> From: Vasil Velichkov 
> Sent: Monday, October 3, 2022 8:47 AM
> To: Michael Matthews ; discuss-gnuradio@gnu.org
> Subject: Re: Problems with gr-modtool on Ubuntu 20.04 (gnuradio 
> 3.10.4)
> 
> Hi Michael,
> 
> On 03/10/2022 08.21, Michael Matthews wrote:
>  > Hello,
>  >
>  > I am new to gnuradio and have been going through the tutorials. I 
> have been specifically interested in Creating C++  OOT with 
> gr-modtool
> A%2F%2Fwiki.gnuradio.org%2Findex.php%3Ftitle%3DCreating_c%252B%252B_OO
> T_with_gr-modtool&data="">
> 1f6504d01189208daa5db7055%7Cad206e7b8a5d4d9aabf6ab3a9fd2c934%7C0%7C0%7
> C638004659156189845%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIj
> oiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6Xp
> RQfPxyc7VrI623hWnTPTwJ34CyP9JLzCFw8Os%2F88%3D&reserved=0>
> but I seem to be