Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dspira-lessons/forum/gnuradio/ #7

Open
utterances-bot opened this issue Sep 2, 2021 · 41 comments
Open

dspira-lessons/forum/gnuradio/ #7

utterances-bot opened this issue Sep 2, 2021 · 41 comments

Comments

@utterances-bot
Copy link

GNURadio Forum – Digital Signal Processing in Radio Astronomy - Lessons Portal

Lots of lessons

https://wvurail.org//dspira-lessons/forum/gnuradio/

Copy link

Greetings DSPIRA,

I love the idea of measuring hydrogen in the Milky Way. Having learnt about DSPIRA from an article in The Physics Teacher, I built the telescope during summer break, and am now trying to test it.

I have been trying to run the spectrometer_w_cal.grc program. However, I seem to get an error.
I'm running Ubuntu from a flashdrive. GNU radio opens nicely, with the spectrometer program displayed:

.....
<<< Welcome to GNU Radio Companion 3.8.1.0 >>>
Block paths:
/usr/share/gnuradio/grc/blocks
/usr/local/share/gnuradio/grc/blocks
Loading: "/home/ubuntu/gr-radio_astro/examples/DSPIRA/spectrometer_w_cal.grc"

Done

.....

However, the Execute button is greyed out, and when I hit it anyway, this message appears:

.....
Generating: '/home/ubuntu/gr-radio_astro/examples/DSPIRA/DSPIRA_Spectrometer.py'

Executing: /usr/bin/python3 -u /home/ubuntu/gr-radio_astro/examples/DSPIRA/DSPIRA_Spectrometer.py

Warning: failed to XInitThreads()
gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.1.0
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
Using AirSpy MINI v1.0.0-rc10-0-g946184a 2016-09-19, samplerates: 3M 6M
.....

The signal in the Spectrum graph is very weak, so I suspect something's wrong.

I'd be grateful for any suggestions.

Kind regards,

Morten Christensen
Copenhagen, Denmark

@glangsto
Copy link
Collaborator

glangsto commented Sep 2, 2021 via email

@skywise-8
Copy link

Dear Glen

Thank you so much for your reply.

I am getting a signal, sort of, though very weak.
I’m using the Nooelec SAWbird +H1 LNA.

In the spectrometer_w_cal.grc program, the only reference to gain I see is in the “osmocom Source”-box. However, there is RF Gain, IF Gain and BB Gain. Default values are 17, 12, 10 respectively.
Which of these should be set to zero?

I'm attaching screenshots of the spectrometer_w_cal.grc program. No changes to the gain settings in the "osmocom Source"-box on the left. Then graphs before and after calibration.

Btw, the Airspy Mini is getting awfully hot. Is this normal?

Kind regards,
Morten

Program, no changes to gain
Uncalibrated, graph B
Uncalibrated, graph A
Uncalibrated, gain graph
Calibrated, graph A
Calibrated, graph B
Calibrated, gain graph

@glangsto
Copy link
Collaborator

glangsto commented Sep 3, 2021 via email

Copy link

ghost commented Feb 5, 2022

I am attempting to run spectrometer_w_cal.grc. It fails and I get these messages:

Generating: '/home/pi/gr-radio_astro/examples/DSPIRA/DSPIRA_Spectrometer.py'
Executing: /usr/bin/python3 -u /home/pi/gr-radio_astro/examples/DSPIRA/DSPIRA_Spectrometer.py
Warning: failed to XInitThreads()
Traceback (most recent call last):
File "/home/pi/gr-radio_astro/examples/DSPIRA/DSPIRA_Spectrometer.py", line 43, in
import radio_astro
ModuleNotFoundError: No module named 'radio_astro'

Any suggestions on how to solve this problem would be appreciated!
Tom

@glangsto
Copy link
Collaborator

glangsto commented Feb 5, 2022 via email

@glangsto
Copy link
Collaborator

glangsto commented Feb 5, 2022 via email

Copy link
Collaborator

jmakous commented Feb 5, 2022

Tom,

There are a couple of things to check: Is gr-raduo_astro installed on your computer? Also, check that the python environment has been set. These extra steps are needed after gr-radio_astro has been installed and "make installed". Refer to the "Additional Steps for setting the proper Python environment" under Installing gr-radio_astro in the Telescope Software Setup module.

If you've already done this, then restart the terminal. If it still doesn't work, we can troubleshoot from there.

John

@GlenLangston
Copy link
Collaborator

GlenLangston commented Feb 5, 2022 via email

@ghost
Copy link

ghost commented Feb 6, 2022 via email

@glangsto
Copy link
Collaborator

glangsto commented Feb 6, 2022 via email

Copy link

ghost commented May 30, 2022

Glen,

I've been having a problem with spectrometer_w_cal.grc running on my Raspberry Pi 4 (8GB memory). I have the Raspbian build that you recommended which contains GNU radio and the DSPIRA program.

I call the program from the GNU radio companion. It works fine and I can initialize parameters but the system locks-up when I try to return to the GNU radio companion, and after a minute or so I get a "system not responding" message. I have to select exit and then restart GNU radio companion.

Any help would be appreciated,

Tom

Copy link

When I try to run the spectrometer_w_cal.grc program, it won't let me execute and the triangle button is grayed out. I think the problem is with the very first block, where I get an error that says 'ID "osmosdr_source_0" does not exist.' Can anyone help me understand what the problem is? I am very new to all of this. Thanks in advance.

Evan

@PranavSanghavi
Copy link
Member

PranavSanghavi commented Aug 30, 2022 via email

@ehalstea
Copy link

ehalstea commented Aug 30, 2022 via email

Copy link

Hm, that didn't seem to work. How do I attach a screenshot here?

@PranavSanghavi
Copy link
Member

PranavSanghavi commented Aug 30, 2022 via email

Copy link

Hi Evan

I agree with Pranav Sanghavi, you probably don't have gr-osmosdr installed.

For what it's worth: I struggled with a (partly) similar problem, and only solved it by installing Gnuradio and gr-radio_astro exactly like described in DSPIRA-lessons. I think Gnuradio 3.8.1 is necessary for spectrometer_w_cal.grc to run properly. (That is, not the newest version of Gnuradio).

I followed the instructions exactly like on these two pages:
https://wvurail.org//dspira-lessons/GNURadio_Installation
https://wvurail.org//dspira-lessons/gr_radio_astro_Installation

Only then would spectrometer_w_cal.grc run.

Best regards, Morten

@ehalstea
Copy link

ehalstea commented Aug 31, 2022 via email

Copy link

whrzg commented Sep 2, 2022

I have installed Ubuntu on my Raspberry Pi 4 following the instructions on the DSPIRA website and am now installing gr-radio_astro. When I get to step 7 and type "sudo make" I get the following error code:

wherzog@wherzog-desktop:/gr-radio_astro/build$ sudo make
[ 16%] Building CXX object lib/CMakeFiles/gnuradio-radio_astro.dir/dedispersion_impl.cc.o
/home/wherzog/gr-radio_astro/lib/dedispersion_impl.cc: In static member function ‘static gr::radio_astro::dedispersion::sptr gr::radio_astro::dedispersion::make(int, float, float, float, float, int)’:
/home/wherzog/gr-radio_astro/lib/dedispersion_impl.cc:35:9: error: could not convert ‘gnuradio::get_initial_sptr(T*) with T = gr::radio_astro::dedispersion_impl’ from ‘std::shared_ptrgr::radio_astro::dedispersion_impl’ to ‘gr::radio_astro::dedispersion::sptr’ {aka ‘boost::shared_ptrgr::radio_astro::dedispersion’}
34 | return gnuradio::get_initial_sptr
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
35 | (new dedispersion_impl(vec_length, dms, f_obs, bw, t_int, nt));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::shared_ptrgr::radio_astro::dedispersion_impl
make[2]: *** [lib/CMakeFiles/gnuradio-radio_astro.dir/build.make:76: lib/CMakeFiles/gnuradio-radio_astro.dir/dedispersion_impl.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:233: lib/CMakeFiles/gnuradio-radio_astro.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
wherzog@wherzog-desktop:
/gr-radio_astro/build$

I'm not sure what to make of all this. Does anyone have any suggestions how I can correct these errors?
Thank you.

Copy link

whrzg commented Sep 15, 2022

I have completed the construction of the horn, can, stand, and LNA. I have also installed Ubuntu desktop 22.04.1 LTS (RPI 4/400) OS in a Raspberry Pi 4 with 8 GB of memory and a 128 GB microSD card. I am in the processing of downloading the gr-radio_astro software according to the instructions at this link (https://wvurail.org/dspira-lessons/gr_radio_astro_Installation) and have encountered an error which I'm unable to resolve. At step 7 of the instructions when I type "sudo make" the following error code is produced:

wherzog@herzog-desktop:~/gr-radio_astro/build$ sudo make
[ 16%] Building CXX object lib/CMakeFiles/gnuradio-radio_astro.dir/dedispersion_impl.cc.o
/home/wherzog/gr-radio_astro/lib/dedispersion_impl.cc: In static member function ‘static gr::radio_astro::dedispersion::sptr gr::radio_astro::dedispersion::make(int, float, float, float, float, int)’:
/home/wherzog/gr-radio_astro/lib/dedispersion_impl.cc:35:9: error: could not convert ‘gnuradio::get_initial_sptr(T*) with T = gr::radio_astro::dedispersion_impl’ from ‘std::shared_ptrgr::radio_astro::dedispersion_impl’ to ‘gr::radio_astro::dedispersion::sptr’ {aka ‘boost::shared_ptrgr::radio_astro::dedispersion’}
34 | return gnuradio::get_initial_sptr
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
35 | (new dedispersion_impl(vec_length, dms, f_obs, bw, t_int, nt));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::shared_ptrgr::radio_astro::dedispersion_impl
make[2]: *** [lib/CMakeFiles/gnuradio-radio_astro.dir/build.make:76: lib/CMakeFiles/gnuradio-radio_astro.dir/dedispersion_impl.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:233: lib/CMakeFiles/gnuradio-radio_astro.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

I would greatly appreciate any suggestions offered as to how I can fix this error.
Thank you.
Bill

Copy link

GiaCet commented Sep 16, 2022

Hi dr. Langston,
I assembled Prof. Bandura's project LNA. I tried using your NFINtegrate100 and NFSIntegrate24 procedures. Both procedures, after following the steps in his LightWork 28 memo paper, always give me a constant intensity over the entire spectrum band of about 240K. As you always wrote in the paper, I would have expected much better values.
I have tried several times, changing the various gains, but the result is more or less the same.
Have you ever had the opportunity to try prof. Bandura? If so, with what results?

Best Regards
Gianni

@GlenLangston
Copy link
Collaborator

GlenLangston commented Sep 16, 2022 via email

Copy link

GiaCet commented Sep 19, 2022

Hello dr.Langston
Thanks for your answer.

In the next few days I will do some checks at the LNA and I try tests again following the memos.
We talk as soon as I have news.

Best Regards
Gianni

Copy link

GiaCet commented Sep 22, 2022

Hello Dr.langston, good news!!!
I checked the LNA pcb and I found some errors; two resistors did not work correctly.
After fixing the problem, with NFSIntegrate100 procedure, I get an average value of 51k constant over the whole spectrum after 1 hour of operation.
I would say a good result.
I will assemble another LNA!!!!

Best Regards
Gianni

@GlenLangston
Copy link
Collaborator

GlenLangston commented Sep 22, 2022 via email

Copy link

ehalstea commented Oct 8, 2022

Does gr-radio_astro require exactly version 3.8.1 of Gnuradio? If so, how do you install a version that is not the latest version?

Thanks,
EVan

@PranavSanghavi
Copy link
Member

Does gr-radio_astro require exactly version 3.8.1 of Gnuradio? If so, how do you install a version that is not the latest version?

Thanks, EVan

Hi Evan,

Yes, the main branch of gr-radio_astro is meant for GNURadio 3.8. If you are inclined to install for GNURadio 3.7 you can git checkout the gr37-maint branch. However this branch is deprecated.

The latest most recently updated version of the software updated to run with GNURadio 3.10 is in the gr310 branch (it is planned to be merged in to the main brain soon).

best,
Pranav

Copy link

TomMHO commented Nov 23, 2022

Hello DSPIRA Team,

Really appreciate what the team is doing, this is a wonderful resource. Among other things, I have been experimenting with the bootable Ubuntu 22.04 image here:

https://wvurail.org//dspira-lessons/Install_Ubuntu_spectrometer_onFlashdrive

When I flash the ubuntu_radio_astro08_2022_2.img image onto a 64G USB drive, the drive does not show up as bootable when I restart my PC. I tried flashing with both Balena Etcher and Rufus and I didn't notice any difference in behavior.

To verify my process, I tried flashing Ubuntu 22.04 directly from the Ubuntu site and the USB drive does show up and Ubuntu runs as expected.

Anybody else notice this?

Thanks,
Tom Hagen

@PranavSanghavi
Copy link
Member

PranavSanghavi commented Nov 23, 2022 via email

@GlenLangston
Copy link
Collaborator

GlenLangston commented Nov 23, 2022 via email

@TomMHO
Copy link

TomMHO commented Nov 23, 2022 via email

Copy link

Hi DSPIRA Team,

I am a working to get this project running for my high school astronomy class. We have built the horns but now I am having trouble getting the program to download/install properly. I am working in Ubuntu on a windows machine (Acer Aspire 5) and have been trying to follow the instructions for commands in the terminal but have encountered some messages that I think is affecting GNURadio working. I am at the step of
cmake .. (which I think worked fine). Now, I did sudo make and am seeing the following response -

error: could not convert 'gnuradio::get_intial_sptr(T*) with T = gr::radio_astro::dedispersion_impl' from 'std::shared_ptr<gr::radio_astro::dedispersion_impl.' to 'gr::radio_astro::dedispersion::sptr' {aka 'boost::shared_ptr<gr::radio_astro::dedispersion.'}

34| return gnuradio::get_initial_sptr
| ~~~~~~~~~~~~~~~~~~~
35| (new dedispersion_impl(vec_length, dms, f_obs,bw,t_int, nt));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| std::shared_ptrgr::radio_astro::dedispersion_impl
make[2]: ***[lin/CMakeFiles/gnuradio-radio_astro.dir/build.make:76: lib/CMakeFiles/gnuradio-radio_astro.dir/dedispersion_impl.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:233: lib/CMakeFiles/gnuradio-radio_astro.dir/all] Error 2
make: *** [Makefile146: all] Error 2

I get the same message when if I try and move on to the command sudo make install.

I can open GNURadio but I cannot get the triangle to not be greyed out even if I try and follow the basic spectrometer instructions which only has a few parts to it.

I do not know Linux and am learning as I tackle this project. ANY HELP you can give would be greatly appreciated!

Thank you,
Kenric

@PranavSanghavi
Copy link
Member

PranavSanghavi commented Feb 17, 2023 via email

@TomMHO
Copy link

TomMHO commented Feb 17, 2023 via email

Copy link

Hi Pranav and Tom, Thanks for reaching out so quickly!

Pranav - I could not get the bootable flashdrive option to work for me so I followed the instructions to install Ubuntu on a windows machine posted in DSPIRA. It is my understanding that I partitioned the hard drive and am running this as a separate operating system. (I have to make a choice as to which operating system I want every time I turn on my computer). When following the guide to install the software, I have GNU Radio 3.10.1.1 (Python 3.10.6) listed in the About section of the program. I know these aren't the versions listed in the instructions but I did everything as written and this is what downloaded.

Tom - I am running 22.04, that is what downloaded through the instructions on the DSPIRA page. How would I go about getting the earlier version of the platform?

Thanks again for all of the help! I am a complete novice when it comes to this but am always willing to learn new things to provide new/fun experiences for my students.

Kenric

@TomMHO
Copy link

TomMHO commented Feb 17, 2023 via email

Copy link

Hi Tom and Pranav,

I was able to get things up and running by switching over to the Ubuntu 20.04 version. Everything outlined in the instructions worked well and I was able to start the program and see a graph.

I am now having issues with actually collecting data. It doesn't seem like I am actually receiving anything from the telescope. This might be better posted in one of the other forums (probably the electronics forum).

Thanks for the help!

Kenric

Copy link

TomMHO commented Feb 28, 2023

Happy to see you got this running, Kenric!

Did you perform the hot/cold calibration? I wasn't receiving a recognizable signal until I calibrated the setup.

Tom

Copy link

No, I think I am still having difficulty with getting a signal to the computer because I'm not seeing any sort of change in the graph when I am moving the scope around the sky (or even at the ground). I am about to update my post on the electronics forum because someone over there was also helping me with the settings.

Copy link

Hello,

I use the print to graph link function on the spectrometer but when I do that the Y-axis label and units do not change when I view the saved graph file . Also when I print to graph the plot line showing in the saved file does not seem to be what is showing on the spectrometer. Do I have to change the code in GNU radio? Please give guidance.

Thank You,

Vic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests