# LimeSDR mini 2 and GNUradio - newbie question

**URL:** <https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820>\
**Category:** LimeSDR\
**Created:** [9 February 2023 17:51 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820 "2023-02-09T17:51:15Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![serych](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/serych/32/4214_2.png) [@serych](https://discourse.myriadrf.org/u/serych)\
**Post date:** [9 February 2023 17:51 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/1 "2023-02-09T17:51:15Z")

</div>

Hi,  
I am the new happy owner of LimeSDR mini 2 board? Could somebody send me a link to some tutorial about where to find and how to install and configure the plugin for GNUradio to use LimeSDR mini2 as source and/or sink?

The only thing I found is the Soapy LimeSDR sink and source but it says:

self.soapy\_limesdr\_source\_0 = soapy.source(dev, “fc32”, 1, ‘’,  
RuntimeError: Failed to make connection with ‘’

Thanks for any help

Jakub

---

<div class="post-metadata">

**Author:** ![andrewback](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andrewback](https://discourse.myriadrf.org/u/andrewback)\
**Post date:** [9 February 2023 21:25 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/2 "2023-02-09T21:25:01Z")

</div>

Hi Jakub,

You can find gr-limesdr blocks here:

> **[GitHub - myriadrf/gr-limesdr: gr-limesdr Plugin for GNURadio](https://github.com/myriadrf/gr-limesdr)**
>
> gr-limesdr Plugin for GNURadio. Contribute to myriadrf/gr-limesdr development by creating an account on GitHub.

They haven’t been updated in a little while, so you’ll likely need to use an older GNU Radio release until we update them to the current series. That said, just spotted some PRs we need to review and merge, so you could try and build from one of those trees in the meantime.

Also make sure that you build Lime Suite from source and install this first. For the time being you’ll need to build from git master also. A new release should be coming soon.

> **[GitHub - myriadrf/LimeSuite: Driver and GUI for LMS7002M-based SDR platforms](https://github.com/myriadrf/LimeSuite)**
>
> Driver and GUI for LMS7002M-based SDR platforms. Contribute to myriadrf/LimeSuite development by creating an account on GitHub.

Andrew

---

<div class="post-metadata">

**Author:** ![serych](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/serych/32/4214_2.png) [@serych](https://discourse.myriadrf.org/u/serych)\
**Post date:** [23 May 2023 13:19 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/3 "2023-05-23T13:19:39Z")

</div>

I tried to make the completely new installation:

- Ubuntu 22.04 + all updates
- LimeSuite (master) build from github source
- GNURadio 3.10 (installed from Ubuntu package)
- gr-limesdr (gr-3.10) build from github source

It seems that all is working properly (LimeQuickTest passed and LimeSDR Source is evidently communicating with the board, messages in GNURadio OK and LED on the board blinks red when communicating).  
But there is no data stream on the LimeSDR source output (I tried just to tune RF frequency to the strong local FM radio and send output to the Waterfall sink).

Any ideas where could be the problem?

---

<div class="post-metadata">

**Author:** ![Ernest](https://avatars.discourse-cdn.com/v4/letter/e/c67d28/32.png) [@Ernest](https://discourse.myriadrf.org/u/Ernest)\
**Post date:** [28 November 2023 02:50 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/4 "2023-11-28T02:50:04Z")

</div>

Hi @serych , I would like to try the same thing with my limesdr mini (not 2.0) and GNUradio (using gnuradio 3.10.1.1 and Ubuntu 22.04). Did you manage to get it to work properly?

P.S. I’m a newbie and still unsure exactly what steps I need to follow to get the limesdr to work with gnuradio so any guidance or tutorial would be appreciated- this is the closest tutorial I could find (for Ubuntu 20.04 and gnuradio 3.8.1): [LimeSDR setup with GNURadio, gr-limesdr and GQRX on Ubuntu-20.04 | by Dr.Signal | InfoSec Write-ups](https://infosecwriteups.com/limesdr-setup-with-gnuradio-gr-limesdr-and-gqrx-on-ubuntu-20-04-4b275176d7cd). Also I noticed that there is a new release for limesuite for 22.04 so can I use PPA instead of building from source?

---

<div class="post-metadata">

**Author:** ![vu2tve](https://avatars.discourse-cdn.com/v4/letter/v/e99b99/32.png) [@vu2tve](https://discourse.myriadrf.org/u/vu2tve)\
**Post date:** [28 November 2023 07:18 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/5 "2023-11-28T07:18:56Z")

</div>

I installed gnuradio and soapysdr and limesuite without compiling from source, and while it recognises the limesdr mini v2, I’m not sure I get proper signal power levels when compared with LimeSDR-USB with the same flowgraph. I had instelled on OSX with homebrew, and I guess installing from source is going to be a PITA.

---

<div class="post-metadata">

**Author:** ![antartica](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@antartica](https://discourse.myriadrf.org/u/antartica)\
**Post date:** [10 January 2024 02:03 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/6 "2024-01-10T02:03:01Z")

</div>

Has there been any progress on this? I am in the same boat, I have lime suit built and installed with all tests passing in LimeQuickTest with my new mini v2.

Just built gnuradio 3.8 from source but it is apparently not finding gr-limesdr as an input option.

Is there an authoritative guide to making this thing work in 2024 in even if I have to have to start from scratch?

---

<div class="post-metadata">

**Author:** ![RightHalfPlane](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@RightHalfPlane](https://discourse.myriadrf.org/u/RightHalfPlane)\
**Post date:** [10 January 2024 05:42 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/7 "2024-01-10T05:42:47Z")

</div>

If you have gr-limesdr installed, but gnuradio is not finding it - it is likely that they were installed using two different versions of python. gnuradio 3.8 is fairly old and it is going out of use. What OS are you using ?

---

<div class="post-metadata">

**Author:** ![antartica](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@antartica](https://discourse.myriadrf.org/u/antartica)\
**Post date:** [15 January 2024 02:50 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/8 "2024-01-15T02:50:15Z")

</div>

I was using Ubuntu MATE. After more experimenting I have things _almost_ working with gnuradio 3.10.9.1.

Current state of my problem is that I can TX with the limeSDR block, but cannot RX with the limeSDR block. Only the soapySDR block will RX. RX also works in gqrx.

Coming from rtl-sdr I’m not sure I know enough yet what questions I need to be asking.

---

<div class="post-metadata">

**Author:** ![RightHalfPlane](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@RightHalfPlane](https://discourse.myriadrf.org/u/RightHalfPlane)\
**Post date:** [15 January 2024 03:26 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/9 "2024-01-15T03:26:38Z")

</div>

With the limeSDR source block, make sure that the correct antenna is selected - some programs default to no antenna.

---

<div class="post-metadata">

**Author:** ![antartica](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@antartica](https://discourse.myriadrf.org/u/antartica)\
**Post date:** [15 January 2024 04:15 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/10 "2024-01-15T04:15:01Z")

</div>

Thanks. I have messed with the antenna port setting without any luck so far. For the most simple test I used the LimeSDR block as a source and a file as a sink, grc will run without presenting any errors, but I end up with an empty file. If I replace the LimeSDR block with a Soapy block it will write data to the file.

---

<div class="post-metadata">

**Author:** ![andrewback](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andrewback](https://discourse.myriadrf.org/u/andrewback)\
**Post date:** [15 January 2024 09:59 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/11 "2024-01-15T09:59:55Z")

</div>

> [@antartica](#):
>
> Current state of my problem is that I can TX with the limeSDR block, but cannot RX with the limeSDR block.

I’m wondering if this is related to the fact that with LimeSDR Mini 2 you must enable Tx even for Rx-only applications, due to the way that clocking is implemented in the ECP5. Can you try adding both source and sink blocks to your flowgraph to see if this makes any difference.

> Only the soapySDR block will RX. RX also works in gqrx.

OK, so that would seem to possibly disprove the above, unless these are enabling Tx even when it’s not used. In any case, still worth testing.

Tagging @zack and @ricardas.

---

<div class="post-metadata">

**Author:** ![RightHalfPlane](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@RightHalfPlane](https://discourse.myriadrf.org/u/RightHalfPlane)\
**Post date:** [15 January 2024 22:15 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/12 "2024-01-15T22:15:08Z")

</div>

I was going to rebuild the latest limeSuite and gr-limesdr from source, but

> **[GitHub - myriadrf/gr-limesdr: gr-limesdr Plugin for GNURadio](https://github.com/myriadrf/gr-limesdr)**
>
> gr-limesdr Plugin for GNURadio. Contribute to myriadrf/gr-limesdr development by creating an account on GitHub.

builds with GNURadio-3.7 not with GNURadio-3.10.

---

<div class="post-metadata">

**Author:** ![antartica](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@antartica](https://discourse.myriadrf.org/u/antartica)\
**Post date:** [16 January 2024 05:33 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/13 "2024-01-16T05:33:51Z")

</div>

There are branches for everything up to gr-3.11, but unclear if any are usable.

I’ll give adding a TX block to my RX flowgraph next weekend and see what happens.

---

<div class="post-metadata">

**Author:** ![RightHalfPlane](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@RightHalfPlane](https://discourse.myriadrf.org/u/RightHalfPlane)\
**Post date:** [16 January 2024 15:16 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/14 "2024-01-16T15:16:29Z")

</div>

> [@andrewback](#):
>
> OK, so that would seem to possibly disprove the above, unless these are enabling Tx even when it’s not used. In any case, still worth testing.

RX does work in gnuradio, if the transmit is running. You do not need to do that with the soapy routines - it looks like limesuite needs a little work.

---

<div class="post-metadata">

**Author:** ![andrewback](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andrewback](https://discourse.myriadrf.org/u/andrewback)\
**Post date:** [16 January 2024 15:32 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/15 "2024-01-16T15:32:30Z")

</div>

> [@RightHalfPlane](#):
>
> it looks like limesuite needs a little work.

Soapy still uses Lime Suite, via the SoapyLMS7 module, so I’m guessing that Soapy must set up both transmit and receive streams regardless. That said, I have asked whether we can have Lime Suite automatically enable Tx on LimeSDR Mini 2, even when only Rx has been set up via the API.

---

<div class="post-metadata">

**Author:** ![antartica](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@antartica](https://discourse.myriadrf.org/u/antartica)\
**Post date:** [22 January 2024 02:56 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/16 "2024-01-22T02:56:23Z")

</div>

Confirmed. Adding a TX block connected to a Null Source got my RX working.

---

<div class="post-metadata">

**Author:** ![Jake](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@Jake](https://discourse.myriadrf.org/u/Jake)\
**Post date:** [27 January 2024 15:50 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/17 "2024-01-27T15:50:23Z")

</div>

> [@antartica](#):
>
> Null Source

After reading your response, I’ve finally managed to get a GNU Radio Flow graph working with my Lime SDR!  
Thank-you!  
If you could shed some more light on why this works, and what docs you read to come to this conclusion, I would really appreciate it 🙂

**Setup**  
_Software:_

- Lime Suite GUI: Version 22.09.0-ge829d3ed Build Date 2024-01-17
- GNU Radio: Version 3.10.4.0 (Python 3.10.12)
- OS: DragonOS FocalX (22.04)

_Hardware:_

- Laptop: ASUS G512L
- SDR: LimeSDR-Mini\_v2 FW:10 HW:7 Protocol:1 GW:2.6 Ref Clk: 40.00 MHz

---

<div class="post-metadata">

**Author:** ![antartica](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@antartica](https://discourse.myriadrf.org/u/antartica)\
**Post date:** [3 February 2024 02:53 UTC](https://discourse.myriadrf.org/t/limesdr-mini-2-and-gnuradio-newbie-question/7820/18 "2024-02-03T02:53:51Z")

</div>

I’m not sure why it works, sorry ¯\_(ツ)\_/¯

I just tried it because of the suggestions in the post by @andrewback
