Git Product home page Git Product logo

Comments (9)

tapparelj avatar tapparelj commented on August 10, 2024

Hello @ktolonen,
From the logs, it seems that the USRP B210 can't use a sampling rate lower than 200kHz. If you based your flowgraph on the example named lora_rx, I would try to set the "samp_rate" to 500kHz and set the "os_factor" parameter of the "Frame sync" block to 4.
If this doesn't help, I would happily take a look at your flowgraph if you can provide a screenshot.

from gr-lora_sdr.

ktolonen avatar ktolonen commented on August 10, 2024

@tapparelj thanks for quick reply!

Unfortunately setting samp_rate to 500kHz doesn't change the situation (os_factor is updating to 4 automatically).
I'm running example/tx_rx_uspr.grc. I changed both samp_rate_tx and samp_rate_rx,

image

[INFO] [UHD] linux; GNU C++ version 10.3.0; Boost_107400; UHD_4.2.0.HEAD-release
[INFO] [B200] Detected Device: B200
[INFO] [B200] Operating over USB 3.
[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.000000 MHz... 
[INFO] [B200] Actually got clock rate 16.000000 MHz.
[INFO] [B200] Asking for clock rate 32.000000 MHz... 
[INFO] [B200] Actually got clock rate 32.000000 MHz.
[WARNING] [AD936X] The requested bandwidth 0.125 MHz is out of range (0.2 - 56 MHz).
The bandwidth has been forced to 0.2 MHz.
usrp_source :info: set_min_output_buffer on block 1 to 512
[WARNING] [AD936X] The requested bandwidth 0.125 MHz is out of range (0.2 - 56 MHz).
The bandwidth has been forced to 0.2 MHz.
modulate :info: set_min_output_buffer on block 5 to 10000000
multiply_const_cc :info: set_min_output_buffer on block 19 to 10000000
Press Enter to quit: 

I can run examples/lora_TX.grc and examples/lora_RX.grc on separate USRP B210 boards, and problem is same although RX is already using "samp_rate" 500k. TX has different configuration and there is a warning.

[INFO] [UHD] linux; GNU C++ version 10.3.0; Boost_107400; UHD_4.2.0.HEAD-release
[INFO] [B200] Detected Device: B210
[INFO] [B200] Loading FPGA image: /home/kari/miniconda3/envs/gr310/share/uhd/images/usrp_b210_fpga.bin...
[INFO] [B200] Operating over USB 3.
[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] 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.000000 MHz... 
[INFO] [B200] Actually got clock rate 16.000000 MHz.
[INFO] [B200] Asking for clock rate 32.000000 MHz... 
[INFO] [B200] Actually got clock rate 32.000000 MHz.
[WARNING] [AD936X] The requested bandwidth 0.125 MHz is out of range (0.2 - 56 MHz).
The bandwidth has been forced to 0.2 MHz.
modulate :info: set_min_output_buffer on block 4 to 10000000
Press Enter to quit: 

I'm using examples as those are on master. Only change is to remove hardcoded ip address.

from gr-lora_sdr.

tapparelj avatar tapparelj commented on August 10, 2024

I don't have a b200 or b210 under the hand, but I tested it again on a b200 mini.
By just changing the sample rate in tx_rx_usrp.grc, I receive the packets without any issue. The terminal output is the same as yours, except for the device name, the GNU c++ version (11.2.0), the UHD version (4.1.0.5-3), and I get the received messages printed. The only way I managed to not receive anything is by disconnecting the antennas.
If you use only one radio, can you try setting the receiver to the RX2 port (in the "uhd: usrp source") and be sure that the antennas you use are suited for a carrier frequency around 868MHz?
I wouldn't expect the version difference of UHD and C++ to make much difference. How did you installed gnuradio (from source, apt, conda, pybombs, or other) ?

from gr-lora_sdr.

ktolonen avatar ktolonen commented on August 10, 2024

Then I suspect antennas since not known history for those and there is no markings. Changing receiver port or using two different boards doesn't change the situation. I have to source known good antennas from somewhere. I let you know when have been able to test with those.

I'm using Ubuntu 22.04 and installed gnuradio 3.10.3.0 (Python 3.10.5) from apt.

from gr-lora_sdr.

tapparelj avatar tapparelj commented on August 10, 2024

A quick test using a cable to connect both ports should do the trick to identify if it is the issue.
I think the issue might come from the version of gnuradio. I tried to get the newest version 3.10.5 and this led to a runtime error. Something changed between the version 3.10.1 that I use and the newer ones and something seems to be broken. I will try fixing it as soon as possible, but in the meantime you probably have to revert to a previous version of gnuradio to use this module.
if you installed gnuradio using:
sudo add-apt-repository ppa:gnuradio/gnuradio-releases and then sudo apt install gnuradio, you can go back to the default version for ubuntu 22.04 by doing:
sudo add-apt-repository ppa:gnuradio/gnuradio-releases --remove
sudo apt update
sudo apt remove gnuradio
sudo apt install gnuradio
Else, you can try directly specifying the version you want to install as sudo apt install gnuradio=3.10.1.1-2, but i'm not sure it will work as easily.

from gr-lora_sdr.

ktolonen avatar ktolonen commented on August 10, 2024

I got another set of antennas and the example starts working as expected. I could even revert the sample rate change, and hello world frames were still received.

So confirming that the issue was with antennas not supporting low frequencies. Thanks for your valuable feedback helping out to solve the problem with my setup. Closing this.

from gr-lora_sdr.

refealwang avatar refealwang commented on August 10, 2024

Hello this gentleman, I have the same problem as you.
When using two B210s, no matter how I change their antennas (4 antennas in the lab, two VERT2450: 2.4-2.48GHz, 4.9-5.9GHz; VERT900: 824-960MHz, 1710-1990MHz; and one flat antenna, which I guess comes with the B210), I end up with the same problem as you exactly the same problem.
But if I use a cable connection between the two B210s, this does not cause these kinds of problems (receiving Hello World normally).
So I'm very interested in your antenna replacement, can you tell me the type of antenna you replaced and what else you did?

from gr-lora_sdr.

ktolonen avatar ktolonen commented on August 10, 2024

Unfortunately I'm not able to tell any characteristics about antennas. I found some from lab and the one pair works. No additional changes done, just replacing the antennas.

from gr-lora_sdr.

refealwang avatar refealwang commented on August 10, 2024

from gr-lora_sdr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.