# Modifying gr-air-modes to work with Nutaq's Zepto/Pico

**URL:** <https://www.ruby-forum.com/t/modifying-gr-air-modes-to-work-with-nutaqs-zepto-pico/239484>\
**Category:** GNU Radio\
**Created:** [February 28, 2014, 4:37pm UTC](https://www.ruby-forum.com/t/modifying-gr-air-modes-to-work-with-nutaqs-zepto-pico/239484 "2014-02-28T16:37:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [February 28, 2014, 4:37pm UTC](https://www.ruby-forum.com/t/modifying-gr-air-modes-to-work-with-nutaqs-zepto-pico/239484/1 "2014-02-28T16:37:04Z")

</div>

Hello,

I’m currently working on a project where I need to install gr-air-modes  
on a Zepto then a Pico from Nutaq. The problem is that gr-air-modes is  
working with UHD/Osmocom.

I wondered if somebody had any ideas about how to modify gr-air-modes ?

Thank you !

Kind regards,

_cid:image001.jpg@01CF20D9.8367E550_cid:image002.jpg@01CF20D9.8367E550

_/linkedin/_  
[http://www.linkedin.com/company/laboratoire-de-recherche-lassena](http://www.linkedin.com/company/laboratoire-de-recherche-lassena)_/twitter/_  
[http://twitter.com/lassenaets](http://twitter.com/lassenaets)[https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-snc6/224433\_10151269768522857\_381084400\_n.jpg](https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-snc6/224433_10151269768522857_381084400_n.jpg)  
[http://www.facebook.com/lassena.etsmtl.ca](http://www.facebook.com/lassena.etsmtl.ca)

\*Adrien Dubedat \*| Stagiaire

Laboratoire LASSENA  
?cole de Technologie Sup?rieure | 1100, rue Notre-Dame Ouest |  
Montr?al (Qc) Canada | H3C 1K3

Tel.:514 430-9342, poste 7750 | Bureau : A-2451 | www.etsmtl.ca  
[http://www.etsmtl.ca/](http://www.etsmtl.ca/)  
Email :removed\_email\_address@domain.invalid  
[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
LASSENA : lassena.etsmtl.ca [http://lassena.etsmtl.ca/](http://lassena.etsmtl.ca/)

-------------------------------------------------------------------------------------------------------------------------------/  
L//‘//?TS est une constituante du r?seau de l//’//Universit? du Qu?bec//  
/

Int?ress? ? joindre le laboratoire de recherche, remplir ce formulaire  
svp : [Jacques-Andre Landry](http://profs.etsmtl.ca/rlandry/landry/avis.asp?lang=fr)  
Interested to join the research laboratory, please fill this form:  
\_[Jacques-Andre Landry](http://profs.etsmtl.ca/rlandry/landry/avis.asp?lang=en_)

* * *

Avis: L’information contenue dans ce courriel est strictement  
confidentielle. Toute utilisation par une personne autre que le  
destinataire est ill?gale.  
Si vous recevez ce courriel par erreur, veuillez svp le d?truire et nous  
en aviser.

---

<div class="post-metadata">

**Author:** ![Adrien\_Dubedat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/da6949/32.png) [@Adrien\_Dubedat](https://www.ruby-forum.com/u/Adrien_Dubedat)\
**Post date:** [March 3, 2014, 1:31pm UTC](https://www.ruby-forum.com/t/modifying-gr-air-modes-to-work-with-nutaqs-zepto-pico/239484/2 "2014-03-03T13:31:33Z")

</div>

Hello Adrien,

You can simply replace the UHD functions invoked by their Nutaq  
equivalent.  
This is very easy and straight forward.

There are two blogs on the subject, one for C language, one for GRC flow  
graphs.  
[http://nutaq.com/en/blog/comparison-nutaq-api-and-usrp-hardware-driver](http://nutaq.com/en/blog/comparison-nutaq-api-and-usrp-hardware-driver)  
[http://nutaq.com/en/blog/how-port-existing-gnu-radio-waveform-picosdr-less-2-minutes](http://nutaq.com/en/blog/how-port-existing-gnu-radio-waveform-picosdr-less-2-minutes)

I had a quick look to gr-air-modes-master, it doesn’t seem to have a  
.grc,  
so you will do the UHD-\>Nutaq replacements in the Python implementation  
(gr-air-modes-master\python\radio.py). The Nutaq API and FPGA cores come  
with in-depth documentation that explains each function (“doc” folder).  
But  
one quick way to get started is by comparing (using diff or Beyond  
Compare)  
the Pyton generated form a basic GRC example (eg: uhd\_rx\_dpsk.uhd.py  
from  
basic GR install) where you replace the UHD blocks with Nutaq blocks.  
The  
delta obtained is the list of UHD python function along with their Nutaq  
equivalent.

In Radio.py (gr-air-modes-master), copy the UHD implementation starting  
at  
line 144 and paste it into a new “elsif” at line 177:  
elif options.source == “zeptosdr”: #using Nutaq ZeptoSDR  
Then replace the “from gnuradio import uhd” and “uhd.usrp\_source()” by  
their  
Nutaq equivalent: “import Nutaq” and “nutaq.rtdex\_source()”  
respectively.

Repeat with all the RTDEx and Radio420x configuration functions listed  
earlier with diff or Beyond Compare (set\_center\_freq , set\_samp\_rate,  
set\_gain, etc…).

Then, remake the proper connexions by replacing  
self.connect((self.uhd\_usrp\_source\_0, 0), (…))  
with  
self.connect((self.nutaq\_rtdex\_source\_0, 0), (…))

Finally, do not hesitate to connect our tech support helpdesk if you run  
into problems understanding an API function when working on your code.

> **[Support | Nutaq Technologies](https://nutaq.com/support)**
>
> Support / Technical Support
> Nutaq is dedicated to offering the best technical support. If you are experiencing problems with one of our products, feel free to let us know by filling the technical support form below. After submitting your request for...

Tristan

–  
View this message in context:  
[http://gnuradio.4.n7.nabble.com/Modifying-gr-air-modes-to-work-with-Nutaq-s-Zepto-Pico-tp46634p46671.html](http://gnuradio.4.n7.nabble.com/Modifying-gr-air-modes-to-work-with-Nutaq-s-Zepto-Pico-tp46634p46671.html)  
Sent from the GnuRadio mailing list archive at [Nabble.com](http://Nabble.com).
