# FM receiver with Novena-RF

**URL:** <https://discourse.myriadrf.org/t/fm-receiver-with-novena-rf/6864>\
**Category:** Novena-RF\
**Created:** [13 January 2021 22:05 UTC](https://discourse.myriadrf.org/t/fm-receiver-with-novena-rf/6864 "2021-01-13T22:05:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![slimsamu](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@slimsamu](https://discourse.myriadrf.org/u/slimsamu)\
**Post date:** [13 January 2021 22:05 UTC](https://discourse.myriadrf.org/t/fm-receiver-with-novena-rf/6864/1 "2021-01-13T22:05:26Z")

</div>

I’ve recently procured a Novena system equipped with the Novena-RF SDR.

The system is installed with the following OS:

```
$ uname -a
Linux novena-one 4.4.0-00156-gc9ba6e8 #12 SMP PREEMPT Fri Feb 19 14:32:59 SGT 2016 armv7l GNU/Linux
$ cat /etc/debian_version 
10.7

```

I’ve been able to now successfully compile the novena\_rf.ko kernel module  
as per the instructions provided.

At this point, I can do the following:

1. Load kernel module with prepare\_novena.sh script

2. Check operation of driver

Note that I also see in the system logs here:

```
[4829.841959] NovenaRF initializing EIM configuration..
[4829.842008] EIM_CSnGCR1 0x31910B8F
[4829.842014] EIM_CSnGCR2 0x00001000
[4829.842021] EIM_CSnRCR1 0x05000000
[4829.842028] EIM_CSnRCR2 0x00000000
[4829.842032] EIM_CSnWCR1 0x03080000
[4829.842038] EIM_WCR 0x00000701
[4829.842042] EIM_WIAR 0x00000010
[4829.842047] resetting CS0 space to 64M and enabling 32M CS1 and 32M CS2 space.
[4829.842051] EIM configured

```

1. Run the ASCII art FFT plotter example

(note that I get the expected output here…)

So far so good. I was hoping to take things to the next level by trying to  
use the Novena-RF as an FM receiver. I’ve tried to follow the tutorial  
GNURadio FM Receiver - Getting Started ([http://play.fallows.ca/wp/radio/software-defined-radio/gnuradio-fm-receiver-getting-started/](http://play.fallows.ca/wp/radio/software-defined-radio/gnuradio-fm-receiver-getting-started/)). I downloaded the GRC file and updated the frequencies to some local radio stations, but it does not seem to be working.

I see the following in the GNU Radio console

```
<<< Welcome to GNU Radio Companion 3.7.13.4 >>>

Block paths:
	/usr/share/gnuradio/grc/blocks

Loading: "/home/gsamu/FM_RX_1a.grc"
>>> Done

Generating: '/home/gsamu/fm_receiver.py'

Generating: '/home/gsamu/fm_receiver.py'

Executing: /usr/bin/python2 -u /home/gsamu/fm_receiver.py

gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp 
e[32;1m[INFO] [UHD] e[39;0mlinux; GNU C++ version 8.2.0; Boost_106700; UHD_3.13.1.0-3
e[31;0m[ERROR] [UHD] e[39;0mDevice discovery error: unknown key format: 0
e[31;0m[ERROR] [UHD] e[39;0mDevice discovery error: unknown key format: 0
e[31;0m[ERROR] [UHD] e[39;0mDevice discovery error: unknown key format: 0
e[31;0m[ERROR] [UHD] e[39;0mDevice discovery error: unknown key format: 0
-- Using subdev spec '0:0'.
e[33;1m[WARNING] [MULTI_USRP] e[39;0mSetting DC offset compensation is not possible on this device.
gr::log :INFO: audio source - Audio sink arch: alsa
e[32;1m[INFO] [UHDSoapyDevice] e[39;0mUsing format CF32.

RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:0,0), Device or resource busy.

aUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaU

```

I’m not clear on the next steps? It seems that it can’t open the sound device? The audio sink has no device specified. But ther are also device discovery  
errors. Any pointers would be greatly appreciated.

---

<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:** [13 January 2021 23:04 UTC](https://discourse.myriadrf.org/t/fm-receiver-with-novena-rf/6864/2 "2021-01-13T23:04:12Z")

</div>

You should be using “Osmocom Source” with Device Arguments: soapy=0,device=novena not “RTL-SDR Source”

---

<div class="post-metadata">

**Author:** ![slimsamu](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@slimsamu](https://discourse.myriadrf.org/u/slimsamu)\
**Post date:** [14 January 2021 00:27 UTC](https://discourse.myriadrf.org/t/fm-receiver-with-novena-rf/6864/3 "2021-01-14T00:27:17Z")

</div>

Hello. I’ve given that a try but it still doesn’t seem to work.

Block paths:  
/usr/share/gnuradio/grc/blocks

Loading: “/home/gsamu/FM\_RX\_1a.grc”

> > > Done  
> > > Error: Cannot create connection.

Generating: ‘/home/gsamu/fm\_receiver.py’

Generating: ‘/home/gsamu/fm\_receiver.py’

Generating: ‘/home/gsamu/fm\_receiver.py’

Executing: /usr/bin/python2 -u /home/gsamu/fm\_receiver.py

gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4  
built-in source types: file osmosdr fcd rtl rtl\_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp [INFO] [UHD] linux; GNU C++ version 8.2.0; Boost\_1  
06700; UHD\_3.13.1.0-3  
[ERROR] [UHD] Device discovery error: unknown key  
format: 0  
[ERROR] [UHD] Device discovery error: unknown key  
format: 0  
[ERROR] [UHD] Device discovery error: unknown key  
format: 0  
[ERROR] [UHD] Device discovery error: unknown key  
format: 0  
– Using subdev spec ‘0:0’.  
[WARNING] [MULTI\_USRP] Setting DC offset compensat  
ion is not possible on this device.  
[WARNING] [MULTI\_USRP] Setting DC offset is not po  
ssible on this device.  
gr::log :INFO: audio source - Audio sink arch: alsa  
gr::log :INFO: audio\_alsa\_sink0 - [hw:CARD=imxaudioes8328,DEV=0]: unable to support sampling rate 24000  
Card requested 44100 instead.  
[INFO] [UHDSoapyDevice] Using format CF32.

RtApiAlsa::getDeviceInfo: snd\_pcm\_open error for device (hw:0,0), Device or resource busy.

aUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaUaU

---

<div class="post-metadata">

**Author:** ![slimsamu](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@slimsamu](https://discourse.myriadrf.org/u/slimsamu)\
**Post date:** [14 January 2021 00:33 UTC](https://discourse.myriadrf.org/t/fm-receiver-with-novena-rf/6864/4 "2021-01-14T00:33:16Z")

</div>

My FM receiver definition: [https://pastebin.com/ibNec2BM](https://pastebin.com/ibNec2BM)

---

<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:** [14 January 2021 02:53 UTC](https://discourse.myriadrf.org/t/fm-receiver-with-novena-rf/6864/5 "2021-01-14T02:53:50Z")

</div>

Your receiver definition errors when I try to load it. Set the audio sink rate to 44100 or Perhaps you can select another audio device for output with “pavucontrol”.

---

<div class="post-metadata">

**Author:** ![slimsamu](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@slimsamu](https://discourse.myriadrf.org/u/slimsamu)\
**Post date:** [14 January 2021 21:32 UTC](https://discourse.myriadrf.org/t/fm-receiver-with-novena-rf/6864/6 "2021-01-14T21:32:45Z")

</div>

Hello. I’ve set the audio sink rate to 44100 and specified device “pulse” again. What’s interesting is that I hear a clicking sound from the speakers about once per second. Additionally in the pavucontrol panel I see under “Playback” the ALSA python task (from gnuradio) appearing and disappearing (see attached image). It’s as though it gets access to the sound, then is blocked and it does this in a cycle. I feel it’s very close and related to the sound device that is being used.

# aplay -L

default  
Playback/recording through the PulseAudio sound server  
null  
Discard all samples (playback) or generate zero samples (capture)  
jack  
JACK Audio Connection Kit  
pulse  
PulseAudio Sound Server  
sysdefault:CARD=imxaudioes8328  
imx-audio-es8328,  
Default Audio Device  
dmix:CARD=imxaudioes8328,DEV=0  
imx-audio-es8328,  
Direct sample mixing device  
dsnoop:CARD=imxaudioes8328,DEV=0  
imx-audio-es8328,  
Direct sample snooping device  
hw:CARD=imxaudioes8328,DEV=0  
imx-audio-es8328,  
Direct hardware device without any conversions  
plughw:CARD=imxaudioes8328,DEV=0  
imx-audio-es8328,  
Hardware device with all software conversions  
usbstream:CARD=imxaudioes8328  
imx-audio-es8328  
USB Stream Output

 ![pavucontrol](https://canada1.discourse-cdn.com/flex034/uploads/myriadrf/original/2X/b/b1026087534106e3fbf178735ff2c978b75154e0.jpeg)

---

<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 2021 03:29 UTC](https://discourse.myriadrf.org/t/fm-receiver-with-novena-rf/6864/7 "2021-01-15T03:29:46Z")

</div>

Most audio devices accept 48,000 - so you might try setting the “Audio Sink” to 48,000 and the Rational Resampler Interpolation to 48 otherwise the Rational Resampler with the 44,100 sink would need values like Interpolation 441 and Decimation 2500 (I am not sure values so large will work) for the FM to be decoded correctly.
