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

Issue on installation on Mac3 #116

Open
Maryam919 opened this issue Oct 27, 2024 · 14 comments
Open

Issue on installation on Mac3 #116

Maryam919 opened this issue Oct 27, 2024 · 14 comments

Comments

@Maryam919
Copy link

Maryam919 commented Oct 27, 2024

Hi,
I followed step by step the installation part and install gr-lora-sdr module (without condo), when I check I see lora_sdr_puthon.so, and saw the lora blocks inside GNURadio but when I open an example from your repository it does not work! I trouble shout several times but it still does not work, last time all lora blocks disappeared from GNURadio!
Could you help me to install on Mac?

@tapparelj
Copy link
Owner

Hello @Maryam,
I've never tried the installation from source on Mac. If the block don't appear but you managed to build and install the oot module without errors, I would suspect an issue with the installation path. How did you install gnuradio? When installing this OOT module, what was installation path? If you open a terminal, run python and try to ''import lora_sdr'' does it find the module?

@Maryam919
Copy link
Author

Maryam919 commented Nov 4, 2024 via email

@Maryam919
Copy link
Author

Maryam919 commented Nov 4, 2024 via email

@tapparelj
Copy link
Owner

I would repeat my question: when installing this OOT module, what was installation path? (It will be written in the terminal when you run make install while in the build folder.

@Maryam919
Copy link
Author

Maryam919 commented Nov 6, 2024 via email

@tapparelj
Copy link
Owner

Ok for the installation, there is an error for the installation path (I'm really not familiar with mac so I'll try my best).
Based on the error messages I would try to install the module where python looks for it, can you try to install the OOT module in /opt/homebrew/ by running
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/homebrew
make install (you may need to use "sudo make install" to have the right to install things there).

For your other question:
I don't have that exact board available, but I could use sx1262 without issues. You need to get a library that allow you to configure the LoRa chip and send messages, then set the same configuration (spreading factor, center frequency, bandwidth,sync word,..) for the USRP (in gnuradio) and for your node. I can't test it, but this and look at the loraBasic examples should do the trick.

@Maryam919
Copy link
Author

Maryam919 commented Nov 6, 2024 via email

@tapparelj
Copy link
Owner

There should be a format error that only appears on mac.. can you try copy and past the content of the file in https://www.yamllint.com/ and see if it finds any error?

Unfortunately, I can't give you a full tutorial. The link is the reference code from Heltec. You should be able to find some tutorial for your specific board.

@Maryam919
Copy link
Author

Maryam919 commented Nov 6, 2024 via email

@tapparelj
Copy link
Owner

Then, sadly, I only see two options:

  • Generate a random flowgraph and try to see what seems different between the .grc file generated and the one in the example.
  • Reproduce the Tx flowgraph from scratch, following the template shown below (you can use the hierachical block to make it easier, at least to try it out).
    image

@Maryam919
Copy link
Author

Maryam919 commented Nov 6, 2024 via email

@Maryam919
Copy link
Author

Maryam919 commented Nov 6, 2024 via email

@tapparelj
Copy link
Owner

Hello,
you can see them by using a "QT GUI Waterfall". However this block has a relatively low resolution so you will be able to see the chirps clearly only for large SFs (e.g. sf12). You might want to decrease the update period as well.
Else you can just save the IQ samples to a file and load them with any programing language you like and plot the instantaneous frequency with some form of differential(unwrap(angle(IQ_samples))).

@Maryam919
Copy link
Author

Maryam919 commented Dec 2, 2024 via email

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

2 participants