Re: {Disarmed} Re: [WVURAIL/gr-radio_astro] Installation difficulty (#20)

2020-06-12 Thread Ron Economos
No problem, plenty of time here with the lock down. Since you have extra 
Python helper modules, you'll need to copy them over and manually edit 
the GR_PYTHON_INSTALL list in python/CMakeLists.txt to install the extra 
modules.


When you run gr_modtool, answer the questions correctly, but to make 
things go a little faster you don't have to bother with entering a valid 
argument list. They're just going to get overridden when you copy your 
old block files in.


In radioastronomy.py, I did have to change the line:

import angles

to:

from . import angles

Here's the output of vectordemo.grc running on a Beagleboard X-15.

vectordemo

Ron

On 6/12/20 04:19, Glen I Langston wrote:

Wow!

That’s fantastic Ron.

Very glad you showed how to accomplish the upgrade.

Thanks

Glen

I agree with your first point about CMake.  The previous version just seemed
to work.  The new version of CMake should have maintained compatibility with 
the previous
version instead of breaking everything.



Re: {Disarmed} Re: [WVURAIL/gr-radio_astro] Installation difficulty (#20)

2020-06-12 Thread Glen I Langston
Wow!

That’s fantastic Ron.

Very glad you showed how to accomplish the upgrade.

Thanks

Glen

I agree with your first point about CMake.  The previous version just seemed
to work.  The new version of CMake should have maintained compatibility with 
the previous
version instead of breaking everything.

> On Jun 12, 2020, at 3:22 AM, Ron Economos  wrote:
> 
> The GNU Radio porting to 3.8 guides instruct you to edit CMake files. You 
> should never have to edit CMake files. CMake is over the heads even of the 
> best of us.
> 
> The good news is that you can leverage gr_modtool to create the correct CMake 
> files for you. It's a little more work, but a successful build is much easier 
> to accomplish.
> 
> Here are the steps for GNU Radio 3.8.
> 1) Clone your repo.
> 
> 2) Rename it to something else. For example gr-radio_astro37.
> 
> 3) Create a new OOT with gr_modtool using the old name. For example, 
> gr_modtool newmod radio_astro
> 
> 4) Use gr_modtool to add all of your blocks.
> 
> 5) Copy over the newly created block files with your old block files.
> 
> 6) In the old repo, run gr_modtool update --complete
> 
> 7) Copy over the newly created .yml files.
> 
> 8) Copy over your .grc example files.
> 9) Build and install. If you have Python blocks, you may have to update them 
> for Python3 (mostly adding parentheses to Print statements).
> 
> 10) Regenerate all of your .grc files from XML to YAML.
> I went ahead and converted your OOT. Here's the log of shell commands (with a 
> working directory of ~/xfer):
> 
> git clone https://github.com/WVURAIL/gr-radio_astro.git
> 
> mv gr-radio_astro gr-radio_astro37
> 
> gr_modtool newmod radio_astro
> 
> cd gr-radio_astro
> 
> gr_modtool add dedispersion
> gr_modtool add detect
> gr_modtool add vmedian
> 
> cd lib/
> 
> cp ~/xfer/gr-radio_astro37/lib/dedispersion_impl.* .
> cp ~/xfer/gr-radio_astro37/lib/detect_impl.* .
> cp ~/xfer/gr-radio_astro37/lib/vmedian_impl.* .
> 
> cd ..
> cd include/radio_astro/
> 
> cp ~/xfer/gr-radio_astro37/include/radio_astro/dedispersion.h .
> cp ~/xfer/gr-radio_astro37/include/radio_astro/detect.h .
> cp ~/xfer/gr-radio_astro37/include/radio_astro/vmedian.h .
> 
> cd ../..
> 
> gr_modtool add chart_recorder
> gr_modtool add csv_filesink
> gr_modtool add dedisperse
> gr_modtool add hd5_sink
> gr_modtool add powerSpectrum
> gr_modtool add ra_ascii_sink
> gr_modtool add ra_event_log
> gr_modtool add ra_event_sink
> gr_modtool add ra_integrate
> gr_modtool add ra_vave
> gr_modtool add ra_vmedian
> gr_modtool add systemp_calibration
> gr_modtool add correlate
> 
> cd python
> cp ~/xfer/gr-radio_astro37/python/chart_recorder.py .
> cp ~/xfer/gr-radio_astro37/python/correlate.py .
> cp ~/xfer/gr-radio_astro37/python/csv_filesink.py .
> cp ~/xfer/gr-radio_astro37/python/dedisperse.py .
> cp ~/xfer/gr-radio_astro37/python/hdf5_sink.py .
> cp ~/xfer/gr-radio_astro37/python/powerSpectrum.py .
> cp ~/xfer/gr-radio_astro37/python/ra_ascii_sink.py .
> cp ~/xfer/gr-radio_astro37/python/ra_event_log.py .
> cp ~/xfer/gr-radio_astro37/python/ra_event_sink.py .
> cp ~/xfer/gr-radio_astro37/python/ra_integrate.py .
> cp ~/xfer/gr-radio_astro37/python/ra_vave.py .
> cp ~/xfer/gr-radio_astro37/python/ra_vmedian.py .
> cp ~/xfer/gr-radio_astro37/python/systemp_calibration.py .
> cd ../..
> 
> cd gr-radio_astro37
> 
> gr_modtool update --complete
> 
> cd ..
> 
> cd gr-radio_astro/grc
> cp ~/xfer/gr-radio_astro37/grc/*.yml .
> 
> cd ..
> cd examples/
> 
> cp ~/xfer/gr-radio_astro37/examples/*.grc .
> 
> cp ~/xfer/gr-radio_astro37/examples/*.conf .
> 
> cd ..
> mkdir build
> cd build/
> cmake ../
> 
> make
> sudo make install
> sudo ldconfig
> cd ..
> 
> cd examples/
> 
> gnuradio-companion vectordemo.grc
> Ron
> On 6/11/20 13:06, Glen I Langston wrote:
>> 
>> We’ve been making half hearted, repeatedly failed, attempts to get our code
>> running with 3.8.  There are just too many changes to figure them all out.
>> 




Re: {Disarmed} Re: [WVURAIL/gr-radio_astro] Installation difficulty (#20)

2020-06-12 Thread Ron Economos
The GNU Radio porting to 3.8 guides instruct you to edit CMake files. 
You should never have to edit CMake files. CMake is over the heads even 
of the best of us.


The good news is that you can leverage gr_modtool to create the correct 
CMake files for you. It's a little more work, but a successful build is 
much easier to accomplish.


Here are the steps for GNU Radio 3.8.

1) Clone your repo.

2) Rename it to something else. For example gr-radio_astro37.

3) Create a new OOT with gr_modtool using the old name. For example, 
gr_modtool newmod radio_astro


4) Use gr_modtool to add all of your blocks.

5) Copy over the newly created block files with your old block files.

6) In the old repo, run gr_modtool update --complete

7) Copy over the newly created .yml files.

8) Copy over your .grc example files.

9) Build and install. If you have Python blocks, you may have to update 
them for Python3 (mostly adding parentheses to Print statements).


10) Regenerate all of your .grc files from XML to YAML.

I went ahead and converted your OOT. Here's the log of shell commands 
(with a working directory of ~/xfer):


git clone https://github.com/WVURAIL/gr-radio_astro.git

mv gr-radio_astro gr-radio_astro37

gr_modtool newmod radio_astro

cd gr-radio_astro

gr_modtool add dedispersion
gr_modtool add detect
gr_modtool add vmedian

cd lib/

cp ~/xfer/gr-radio_astro37/lib/dedispersion_impl.* .
cp ~/xfer/gr-radio_astro37/lib/detect_impl.* .
cp ~/xfer/gr-radio_astro37/lib/vmedian_impl.* .

cd ..

cd include/radio_astro/

cp ~/xfer/gr-radio_astro37/include/radio_astro/dedispersion.h .
cp ~/xfer/gr-radio_astro37/include/radio_astro/detect.h .
cp ~/xfer/gr-radio_astro37/include/radio_astro/vmedian.h .

cd ../..

gr_modtool add chart_recorder
gr_modtool add csv_filesink
gr_modtool add dedisperse
gr_modtool add hd5_sink
gr_modtool add powerSpectrum
gr_modtool add ra_ascii_sink
gr_modtool add ra_event_log
gr_modtool add ra_event_sink
gr_modtool add ra_integrate
gr_modtool add ra_vave
gr_modtool add ra_vmedian
gr_modtool add systemp_calibration
gr_modtool add correlate

cd python

cp ~/xfer/gr-radio_astro37/python/chart_recorder.py .
cp ~/xfer/gr-radio_astro37/python/correlate.py .
cp ~/xfer/gr-radio_astro37/python/csv_filesink.py .
cp ~/xfer/gr-radio_astro37/python/dedisperse.py .
cp ~/xfer/gr-radio_astro37/python/hdf5_sink.py .
cp ~/xfer/gr-radio_astro37/python/powerSpectrum.py .
cp ~/xfer/gr-radio_astro37/python/ra_ascii_sink.py .
cp ~/xfer/gr-radio_astro37/python/ra_event_log.py .
cp ~/xfer/gr-radio_astro37/python/ra_event_sink.py .
cp ~/xfer/gr-radio_astro37/python/ra_integrate.py .
cp ~/xfer/gr-radio_astro37/python/ra_vave.py .
cp ~/xfer/gr-radio_astro37/python/ra_vmedian.py .
cp ~/xfer/gr-radio_astro37/python/systemp_calibration.py .

cd ../..

cd gr-radio_astro37

gr_modtool update --complete

cd ..

cd gr-radio_astro/grc

cp ~/xfer/gr-radio_astro37/grc/*.yml .

cd ..

cd examples/

cp ~/xfer/gr-radio_astro37/examples/*.grc .

cp ~/xfer/gr-radio_astro37/examples/*.conf .

cd ..

mkdir build

cd build/

cmake ../

make

sudo make install

sudo ldconfig

cd ..

cd examples/

gnuradio-companion vectordemo.grc

Ron

On 6/11/20 13:06, Glen I Langston wrote:


We’ve been making half hearted, repeatedly failed, attempts to get our 
code

running with 3.8.  There are just too many changes to figure them all out.



Re: {Disarmed} Re: [WVURAIL/gr-radio_astro] Installation difficulty (#20)

2020-06-11 Thread Glen I Langston
Hi Gisle,

I think you’ve revealed the problem that we’ve not “Upgraded” to 3.8.

What build environment are you working in Gnuradio 3.7 or 3.8?

We’ve been making half hearted, repeatedly failed, attempts to get our code
running with 3.8.  There are just too many changes to figure them all out.

The gnuradio dynamic environment is great for code=super=heroes, but I’m afraid 
I’m stuck.

Sorry,

Glen

PS that’s why I’m recommending just downloading the gnuradio 3.7 with the
whole OS for Raspberry Pi 4.

Here’s the Raspberry PI OS for SDRs. It will run on a Pi 3, but runs
much better on a Pi 4. It is BIG, 2.3 Gigabytes:
https://drive.google.com/file/d/1yjCdpyF_T0Lb4uwVfz-mSzp4DTqDq6Uj/view?usp=sharing
 


Our goal was to make it easy to get started with home radio astronomy.

The download completely overwrites the previous contends of the SDcard.
You can start with a new blank card (8, 16 or 32 GB).

The OS has absolutely all the code you need to observe, except your
horn, and the SDR.  The code works with AIRSPY full-size (10 MHz), NESDR, 
AIRSPY mini (6 MHz), SDRplay RSP1A dongles.

The OS has Gnuradio 3.7+ installed, with all the WVURAIL code also installed.

You have to login via VNC (Virtual Network Connection) on your PC.
The PI address is 192.168.1.110 for the Raspberry Pi.

PSS, We’d love to have a complete Raspberry PI OS download that included
an operating Gnuradio 3.8, if it included support for AIRSPY, SDRPlay, NESDR
and PlutoSdr.

I gave a live demo of a home radio telescope in operation, detecting the Milky 
Way. 
The very beginning shows the telescope in operation, and the last 5 minutes
shows the strong Milky Way signal you can see with only a 10inch diameter horn.
My wife, Katherine, assisted by pointing the telescope on and off of the Milky 
Way.

The webinar is compressed to a reasonable size here:
https://www.gb.nrao.edu/~glangsto/aas2020/Langston2020AasTelescopeWebinar.mp4 


> On Jun 11, 2020, at 1:28 PM, Gisle Vanem  > wrote:
> 
> 
> What exactly was the error message?
> 
> detect_impl.cc (121,29): error: use of undeclared 
> identifier 'CLOCK_REALTIME'
>   int r = clock_gettime(CLOCK_REALTIME, );
> 
> Did the other modules build?
> 
> No, the mess the GNU-radio folks created when going from boost::shared_ptr to 
> std::shared_ptr has made it impossible.
> 
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub, or unsubscribe.
> 
> [ { "@context": "http://schema.org ", "@type": 
> "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": 
> "https://github.com/WVURAIL/gr-radio_astro/issues/20#issuecomment-642825444 
> ",
>  "url": "https://github.com/WVURAIL/gr- 
> radio_astro/issues/20#issuecomment-642825444",
>  "name": "View Issue" }, "description": "View this Issue on GitHub", 
> "publisher": { "@type": "Organization", "name": "GitHub", "url": 
> "https://github.com " } } ]