# LimeSDR-mini for TVWS

**URL:** <https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267>\
**Category:** Projects\
**Created:** [21 July 2021 10:39 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267 "2021-07-21T10:39:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![eshikafe](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/eshikafe/32/3874_2.png) [@eshikafe](https://discourse.myriadrf.org/u/eshikafe)\
**Post date:** [21 July 2021 10:39 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/1 "2021-07-21T10:39:12Z")

</div>

Hello,

Please what will it take to use the LimeSDR-mini as a TV whitespace or Super-WiFi(802.11af) radio?

My test frequency range is 460 - 694MHz.  
Can I just configure the LimeSDR-mini to transmit and receive within this frequency range, using the soapysdr C API?

Or, do I need to program the FPGA with an IP core for 802.11af?

Please what will it take to use the LimeSDR-mini as a TVWS radio ?

Thanks.

---

<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:** [21 July 2021 12:54 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/2 "2021-07-21T12:54:46Z")

</div>

I understand that implementing WiFi with support for even modest data rates takes a lot of processing power. There are some research implementations based on GNU Radio, that use a GPP only I think, but the throughput is pretty low. Wasn’t clear if this is for production use, but if so, using SDR to implement WiFi is likely a terrible idea.

No idea what system/waveform you would need to implement for TVWS and so it’s hard to say. I think ascertaining that would be the starting point.

---

<div class="post-metadata">

**Author:** ![eshikafe](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/eshikafe/32/3874_2.png) [@eshikafe](https://discourse.myriadrf.org/u/eshikafe)\
**Post date:** [21 July 2021 13:43 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/3 "2021-07-21T13:43:08Z")

</div>

Does this imply that the TVWS stack has to be implemented directly in the FPGA?

---

<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:** [21 July 2021 13:48 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/4 "2021-07-21T13:48:20Z")

</div>

No, or maybe yes. It implies that I have zero idea what is in a TVWS stack 🙂 What waveform/modulation does TVWS need to use? Presumably there is a standard? I don’t know…

The vast majority of LimeSDR applications are implemented entirely on the host and I can think of only two projects which use custom FPGA gateware: one where this performs FFT for an accelerated spectrogram and another where part of a DVB stack is implemented in FPGA.

---

<div class="post-metadata">

**Author:** ![eshikafe](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/eshikafe/32/3874_2.png) [@eshikafe](https://discourse.myriadrf.org/u/eshikafe)\
**Post date:** [21 July 2021 13:53 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/5 "2021-07-21T13:53:02Z")

</div>

One of the standards for TVWS is IEEE 802.11af (also called super WiFi). It is a variant of 802.11.

The modulation is OFDM.

What do you think will be the best approach for implementing IEEE 802.11? SDR or FPGA?

---

<div class="post-metadata">

**Author:** ![eshikafe](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/eshikafe/32/3874_2.png) [@eshikafe](https://discourse.myriadrf.org/u/eshikafe)\
**Post date:** [21 July 2021 13:56 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/6 "2021-07-21T13:56:18Z")

</div>

802.11af defines enhancements to the 802.11 WLAN physical layer (PHY) and medium access control (MAC) specifications to support operation in the TV white space (TVWS) spectrum in the VHF and UHF bands between 54 and 790 MHz.

---

<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:** [21 July 2021 14:16 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/7 "2021-07-21T14:16:32Z")

</div>

I see. I just googled SDR and 802.11af and the first thing I found was this:

> **[swifi.pdf](https://www.khoury.northeastern.edu/home/vohuudtr/publications/swifi.pdf)**

Which notes:

> We note that SWiFi is limited by the hardware SDR delay, and does not run within the SDR FPGA. Therefore it cannot send ACK packets within the SIFS interval. It is however designed with the  
> goal to enable the analysis of Wi-Fi networks in ways not possible before.

---

<div class="post-metadata">

**Author:** ![mzs](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/mzs/32/2678_2.png) [@mzs](https://discourse.myriadrf.org/u/mzs)\
**Post date:** [21 July 2021 15:11 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/8 "2021-07-21T15:11:24Z")

</div>

That is true for most [802.11 WiFi](https://discourse.myriadrf.org/t/decoding-wifi-using-limesdr/2891/3), that there is no way over USB 3.0 to receive a full frame, fully demodulate it, confirm that it is free of errors and then send back an ACKnowledgement within the required SIFS (Short Interframe Space) time.

However for Super-WiFi(802.11af) they have bumped up the aSifsTime (120 µs for BCUs: 6 MHz/7 MHz and 90 µs for BCUs: 8 MHz) which might just nearly be enough to make the timing almost possible, but it would require an insane amount of processing power and even then the timing may not be good enough because meeting the other timing requirements would not be simple.

Ref: “23.4.4 PHY characteristics” - DOI: 10.1109/IEEESTD.2014.6744566 (behind a pay wall)

---

<div class="post-metadata">

**Author:** ![eshikafe](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/eshikafe/32/3874_2.png) [@eshikafe](https://discourse.myriadrf.org/u/eshikafe)\
**Post date:** [21 July 2021 15:44 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/9 "2021-07-21T15:44:22Z")

</div>

This research paper proves that it is possible ( although with some limitations). It also shows that the WiFi SDR out-performs some commercial wifi modems.

---

<div class="post-metadata">

**Author:** ![eshikafe](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/eshikafe/32/3874_2.png) [@eshikafe](https://discourse.myriadrf.org/u/eshikafe)\
**Post date:** [21 July 2021 15:49 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/10 "2021-07-21T15:49:08Z")

</div>

It is possible to implement with the limesdr-mini with some performance limitations. Best performance will be obtained if implemented on the FPGA.

I will give the SDR approach a try, at least, for a start.

---

<div class="post-metadata">

**Author:** ![eshikafe](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/eshikafe/32/3874_2.png) [@eshikafe](https://discourse.myriadrf.org/u/eshikafe)\
**Post date:** [21 July 2021 16:59 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/11 "2021-07-21T16:59:44Z")

</div>

Openwifi might be a good starting point

> **[GitHub - open-sdr/openwifi: open-source 802.11 WiFi baseband chip/FPGA design](https://github.com/open-sdr/openwifi)**
>
> open-source 802.11 WiFi baseband chip/FPGA design. Contribute to open-sdr/openwifi development by creating an account on GitHub.

I don’t know how much effort it will take to implement it on the limesdr-mini.

---

<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:** [22 July 2021 08:53 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/12 "2021-07-22T08:53:20Z")

</div>

> [@eshikafe](#):
>
> I don’t know how much effort it will take to implement it on the limesdr-mini.

Strongly suspect not possible. The Mini has a pretty small FPGA. May be possible with LimeSDR-USB or one of the PCIe boards, but these all use Altera FPGAs and they use Xilinx. Porting is likely to be non-trivial.

---

<div class="post-metadata">

**Author:** ![eshikafe](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/eshikafe/32/3874_2.png) [@eshikafe](https://discourse.myriadrf.org/u/eshikafe)\
**Post date:** [22 July 2021 09:22 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/13 "2021-07-22T09:22:53Z")

</div>

I first need to confirm if the [mac80211](https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git/) Linux kernel module supports the IEEE 802.11af standard before trying to extend the openwifi PHY layer implementation to support 802.11af. The mac80211 kernel module will run an [OpenWRT](https://openwrt.org/) board connected to the LimeSDR-Mini.

In general, the [openwifi](https://github.com/open-sdr/openwifi) architecture looks like a good starting point. I guess I will have to trim down the PHY implementation on the FPGA to only support 802.11af (the essential parts) so it fits into the LimeSDR-Mini.

---

<div class="post-metadata">

**Author:** ![yasser](https://avatars.discourse-cdn.com/v4/letter/y/5f9b8f/32.png) [@yasser](https://discourse.myriadrf.org/u/yasser)\
**Post date:** [28 July 2021 10:52 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/14 "2021-07-28T10:52:39Z")

</div>

Hi Eshikafe,  
I am very interested in the project you are working on. because for one year I am working on using TVWS in IoT applications. Why don’t you use any of the shelf IEEE802.11af transceiver modules for your application?

---

<div class="post-metadata">

**Author:** ![eshikafe](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/eshikafe/32/3874_2.png) [@eshikafe](https://discourse.myriadrf.org/u/eshikafe)\
**Post date:** [28 July 2021 11:05 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/15 "2021-07-28T11:05:22Z")

</div>

Thanks Yasser. I have tried searching.

Please kindly share the list of TVWS transceiver modules available commercially.

---

<div class="post-metadata">

**Author:** ![yasser](https://avatars.discourse-cdn.com/v4/letter/y/5f9b8f/32.png) [@yasser](https://discourse.myriadrf.org/u/yasser)\
**Post date:** [28 July 2021 12:48 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/16 "2021-07-28T12:48:07Z")

</div>

I couldn’t find any in the market. I wonder if you know any IEEE02.11af transceiver. I thought that maybe I missed something. Do you have any clue that why there is not any of the shelf radio module for this band?

---

<div class="post-metadata">

**Author:** ![mzs](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/mzs/32/2678_2.png) [@mzs](https://discourse.myriadrf.org/u/mzs)\
**Post date:** [29 July 2021 18:17 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/17 "2021-07-29T18:17:10Z")

</div>

> [@yasser](#):
>
> I couldn’t find any in the market. I wonder if you know any IEEE02.11af transceiver. I thought that maybe I missed something.

The only one I can find is the [GWS 5000](http://www.6harmonics.com/gws-5000-series-tv-white-space-solution/), I would not expect it to be cheap.

> [@yasser](#):
>
> Do you have any clue that why there is not any of the shelf radio module for this band?

The device requires GPS so that it can report it’s location, with EIRP(effective isotropically radiated power) and other information which changes from country to country when requesting spectrum. Then it needs continuous internet access to contact the correct TV White Space Database server which would be different for each country, using the correct protocol for that country to negotiate a slice of spectrum to use for a short period of time (Ofcom granting use for up to 2 hours in the UK - [https://tvws-databases.ofcom.org.uk/](https://tvws-databases.ofcom.org.uk/) , FCC granting use for up to 48 hours in the US - [White Space Database Administration | Federal Communications Commission](https://www.fcc.gov/general/white-space-database-administration) and [https://apps.fcc.gov/oet/translator/](https://apps.fcc.gov/oet/translator/) ). I would have expected them all to have been using PAWS([Protocol to Access White-Space - RFC7545](https://datatracker.ietf.org/doc/html/rfc7545)) databases, but every country can do it their own unique non-standard/individualistic way. I can see creating hardware as being the easy part, but getting it certified and complying with all the different legal requirements in each country would be very expensive. And then developing the software that can interact with many non-standard databases for access, I’d see as a total nightmare. Legally TX would need to be fully disabled until allocated spectrum, and then if you fail to renew your existing allocation, you would need to follow each countries individual policy requirements, which can and will change!

e.g. For Canada the “[WSDB failure to access ISED database](https://www.ic.gc.ca/eic/site/smt-gst.nsf/eng/sf10928.html)” procedure would be:

"Should the ISED database not be available, additional attempts to retrieve information from the ISED database shall be made at least once every 4 hours. If more than 12 hours has elapsed without the WSDBA being able to retrieve this information, the WSDBA shall contact ISED regarding the unsuccessful access to the ISED database.

Thereafter, a WSDB may continue to operate for 7 days, from the last successful access, unless otherwise indicated by ISED. After those 7 days, the WSDBA shall only operate in accordance with instructions provided by ISED. It is anticipated that the latter approach (i.e. contacting ISED for further instructions) would only occur in rare circumstances."

---

<div class="post-metadata">

**Author:** ![eshikafe](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/eshikafe/32/3874_2.png) [@eshikafe](https://discourse.myriadrf.org/u/eshikafe)\
**Post date:** [29 July 2021 18:40 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/18 "2021-07-29T18:40:30Z")

</div>

I found this one: [http://www.aviacomm.com/products-tvws/](http://www.aviacomm.com/products-tvws/)

---

<div class="post-metadata">

**Author:** ![mzs](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/mzs/32/2678_2.png) [@mzs](https://discourse.myriadrf.org/u/mzs)\
**Post date:** [29 July 2021 19:00 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/19 "2021-07-29T19:00:00Z")

</div>

Found an interesting document that may be of use: [ECMA-392](https://www.ecma-international.org/publications-and-standards/standards/ecma-392/)

---

<div class="post-metadata">

**Author:** ![eshikafe](https://yyz2.discourse-cdn.com/flex034/user_avatar/discourse.myriadrf.org/eshikafe/32/3874_2.png) [@eshikafe](https://discourse.myriadrf.org/u/eshikafe)\
**Post date:** [30 July 2021 07:35 UTC](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267/20 "2021-07-30T07:35:19Z")

</div>

Looks very simple to implement. I will need to compare this with the 802.11af specification.

[Next page](https://discourse.myriadrf.org/t/limesdr-mini-for-tvws/7267.md?page=2)
