415 points · by homarp · 6y ago · 84 comments
https://openofdm.readthedocs.io/en/latest/
(Modern) WiFi shares a lot of similarities to the physical layers of LTE/5G NR in their more basic modes, so this is useful well beyond WiFi.
>New IEEE 802® standards are included in the program after they have been published in PDF for six months. All standards available in the IEEE GET 802™ program will remain in the program until they are replaced by a superseding document or are withdrawn. Drafts are not part of the program.
>
>To download these standards, you must sign in with an IEEE Account. If you do not already have an IEEE Account
[1] https://ieeexplore.ieee.org/browse/standards/get-program/pag...
Anyway, there is a lot of value as a testbench or as a standard implementation for others. I can only imagine how much a testbench would cost...
https://ip.cadence.com/uploads/706/dsv-sim-eth-wireless80211...
Actually the first ping worked in the end of 2018 to the beginning of 2019. But like you also realize, it is complicated, and actually well beyond my original imagination. So between the first ping and the release status (at the end of 2019), there was a lot of work. Finally it comes to today, and it runs "normally": stable ping, stable throughput, less crash. Huge effort is needed just to make things work as normal.
Is anyone trying to create an open source version of that chip? I understand there's not a lot in the way of open source analog chip designs out there, but with Google/Skywater's free PDK, the time may be ripe to change that.
Also, there are many SDR LTE base stations, but can we make our own SDR LTE handset as well? Can it connect to an existing cell network?
If you're willing to take up a suitcase worth of room, you can use standard analog ICs and RF building blocks to take a quite normal DAC and upconvert it to RF, and downconvert the receive chain likewise to a very common ADC. The standard wifi channel width of 20MHz should place it within reach of quite a few off-the-shelf chips.
That approach should be able to do the whole thing with no NDAs or whatever; it would be a fine capstone project for someone chasing an EE/RF degree...
Does it really take up a suitcase worth of electronics to do what the transceiver IC's are doing?
Can you build that all onto one board? Yeah sure, after it's proven and set in stone.
On the one hand I'm like, it's basically just dumping wideband spectrum into the air, right?
On the other hand the OpenOFDM reference talks quite a bit about much larger I/Q values, so maybe "8-bit quadrature samples" is exactly why nobody uses it for Wi-Fi. :(
(Yup, am RF noob)
Low resolution I/Q (8bit) will impact the RX sensitivity and TX EVM, but it won't be a factor that will totally fail the WiFi implementation.
WiFi channels are generally 20, 40 or 80 MHz, so the latter two are not possible given the hardware, and the smallest (20 MHz) would be right at the limit of the hardware. Additionally, there may be other complications (tx/rx switching speed, tuning speed (I'm not sure if wifi would need to do frequency hopping, and if the bandwidth is sufficient to mitigate that need), etc...)
And then someone would have to actually implement it.
Nowadays if you want an RF transceiver chip you either go with direct synthesis of ADC/DAC or homodyne architecture. The companies that have both of these design capabilities are ADI and TI, and both them are happy with their monopoly.
But if any R&D company that probably can pull it off it will be IMEC, and coincidentally it is the employer of some of Openwifi engineers. FYI, IMEC are both funded by Belgium government and a well established IC design company.
To achieve the same data rates as a usual LTE handset, but using SDR instead of an ASIC, would make it extremely power hungry. Power is not much of an issue for the base station, but for the handset it is essential.
I am not sure what other IP blocks are being used in these FPGAs, but a viterbi decoder can be pretty area and power heavy (relatively speaking.) I'm not sure if you would be able to get enough performance [speed] with modern WiFi protocols by implementing it in normal FPGA fabric hence why those blocks are woven into the FPGA.
All that said, this is still a very good thing, because it marks a step forward towards a more open source hardware ecosystem.
Maybe if you put one these in a kinda-large handheld: https://tinysdr.org/
No one can decide to pay 200~300k euro in a minute with very uncertain return (like charity), because no one can 100% answer the question of how many openwifi chips can be sold per year.
Pretty good.
A bit longer answer: Basically Linux gives packet to our driver, and then our driver gives the packet to our FPGA for further processing (queuing, modulation, CSMA, etc). So you can compose your packet in the driver or anywhere else that can communicate with the driver, then instruct the FPGA to send your packet at any frequency 70M~6GHz.
It will be very worth to read the README and project document word by word on the github: https://github.com/open-sdr/openwifi . I believe you can already find answers of more questions there.
The SDR implementation is unlikely to be patent-infringing, as Australia does not generally allow software patents. [0] Software implementations of existing hardware are generally not considered to be patent-infringing under the current interpretations of law.
However! The SDR implementation is still likely to be copyright-infringing, as Australia does have copyright laws that are rather vague and far reaching, and Australians are not granted the right to give up copyright.
[0] Software patents can be granted, but they require the idea "improve the computer" rather than "merely requires generic computer implementation". Which is a higher hurdle than people expect, and has led to IBM, Microsoft and others losing and failing to gain software patents in Australia.
As Australia operates under rules that translate to "reasonable interpretation", rather than strict definitions, the answer to your question is "Maybe".
To start of with, the belief that only plagiarised work can be copyright infringing is incorrect, at least when it comes to Australia.
A lot of reverse-engineering work is not done inside Australian borders, because the current interpretations of copyright law aren't favourable (as well as some other related laws).
For example, if there exists a proprietary protocol, then the protocol itself may fall under copyright, and simply making a tool that speaks to that protocol may be considered infringing. This is because our copyright laws, or rather the interpretations of them, speak to the 'substance' of the tool being copyrighted, rather than the work itself.
(And yes - copying a painting copies the 'substance' and can run afoul of our insane copyright regulations. Depending on how much the original artist cares.)
As I said before, vague and far-reaching. And the courts have never been consistent in the way they hand down their case-by-case judgements.
Australia is not well known for intelligent tech laws. Iterating public IDs can be considered hacking, forcing a secret backdoor isn't considered a systemic security weakness, etc.
- Very nonstandard
- Limited client density (could be fine in a house)
- Beam-forming probably out of the question
It would probably work OK though. But why is it better than making 802.11r work? From my perspective as a user (not as a client node) it's completely transparent.
If is should be standards-compliant, you will be limited in functionality. E.g. the timing-constraints of ACK and CSMA limit the length of the antenna cable, though that should not prevent your idea. I guess, it will be more problematic to realize compliant CSMA, as you would need to perform clear channel assessment on each individual antenna?
Anyways, distributed MU-MIMO seems to get traction. We are working on it ourselves.
[1] https://conferences2.sigcomm.org/co-next/2014/CoNEXT_papers/...
This is the author Xianjun.
When communicate with commercial device, tcp can achieve ~30M, UDP can achieve ~38M in 20MHz 11a/g non MIMO mode. We are still working hard to optimize the whole design, because we know it is not mature enough and there is still lots of work to be done. For example, the original PHY rx openofdm design is simplified a lot for a quite small fpga which means performance (like sensitive) is sacrificed. Now our FPGA is more advanced than the openofdm FPGA in USRP N210, so there is a chance to improve a lot on both performance and features (like MIMO and new standard). Recently nlnet.nl gives us a short term fund to complete the 802.11n feature: https://nlnet.nl/project/OpenWifi-80211n/index.html
There are lots of information (including throughout) in the readme and “project document” on GitHub (https://github.com/open-SDR/openwifi). Worth to read word by word.
It's a shame. Sounded like it would have been interesting.
There are people with other opinions, but even they agree that this is not tested in court, and it's more expensive to be sued, even if you win, than to just buy (or write from scratch) ANY alternative to the AGPL software in question.
AGPL is a legal landmine. You can't plug it into anything else, even for your own purposes.
Let's say you use these to create a guest wifi network. According to AGPL it looks like you must now opensource any and all scripts that you use to manage this environment.
In other words that one-off script you used to loop over all your access points during setup must be opensourced. Oh, it has details about your internal asset tracking system? Well, they now have to be public. Oh, it relies on your internal database? I guess that's opensource now too.
Did you even keep that one-off script? AGPL demands that others must be able to run what you run, essentially. It says that everything you do operationally to your service must now be documented and published.
You want to connect your internal SSO to the AP? Sorry, you better instead change it so that your internal SSO takes whatever protocol the AGPL software already takes. Oh, that's not feasible? Ok, give up then.
1 year later… oh shit oh shit oh shit, someone added internal SSO to the AGPL software! Now we have to opensource that, but we can't because it includes code we licensed from a third party only for nondistribution!
AGPL only makes sense for organizations that fundamentally ONLY will EVER run open source software (like FSF and that's it), and usually not even then.
Also ideologically it's a huge violation of freedom. What I do in my own home is absolutely none of your business. What executes on my hardware is my business.
For those who disagree about my examples: Yeah… I'm personally not a lawyer (but HAVE consulted with lawyers about this). You may be right. In the end a court will decide. But do you want to take this poison pill in order to find out in court if you die?
1. zed board + fmcomms4 = 883 USD https://www.digikey.com/product-detail/en/digilent-inc/410-2... https://www.digikey.com/products/en?keywords=FMCOMMS4
2. adrv9364z7020 + crr bob board = 932 USD https://www.digikey.com/products/en/rf-if-and-rfid/rf-transc... https://www.digikey.com/product-detail/en/analog-devices-inc...