GNU Radio
github.com
github.com
But the frontpage doesn't take you there.
Previous discussion on HN: https://news.ycombinator.com/item?id=24750588.
Ham Radio Workbench podcast on GNU Radio: https://www.hamradioworkbench.com/podcast/GNU-Radio.
In terms of hardware, there is a large spectrum, from inexpensive RTL-SDR (receive only, ~$25), PlutoSDR (transmit and receive, $229, which PySDR covers) all the way to $x000+ for USRP etc.
https://osmocom.org/projects/osmo-fl2k/wiki (repurposing a USB-VGA dongle as analog source)
https://github.com/F5OEO/rpitx (repurposing bitbang/PWM GPIO; we had weird problems with data corruption when we were trying to use it as a radio modem, but maybe you will have more luck)
https://bellard.org/dvbt/ (repurposing standard VGA card, but it's probably not worth it since fl2k is way better)
(beware that low quality of the transmitter usually means it will cause interference with other stuff. However, all of these have such a low power that if you will not use an amplifier, it will be OK, the interference will be probably undetectable outside of the room where the transmitter is)
https://www.dsprelated.com/showarticle/192.php https://www.katjaas.nl/home/home.html
We are maintaining a long list with theory/math: https://brmlab.cz/event/dsp#zdroje , and engineering stuff: https://brmlab.cz/project/sdr/start#links . However, I agree it is rather difficult to get into the topic. I'm playing with SDRs for almost 10 years (increasingly "fulltime" lately), and we still need to employ a professional mathematician to help me with some advanced problems.
That seems like it would be a nice cheap one-two punch for getting started. AFAIR wifi uses the public (unregulated) bands so there should be lots of interesting stuff on those frequencies beyond wifi signals.
The only project that so far has managed to even partially use wifi hardware as a more generic SDR is nexmon[1] and even that is rather involved. Really cool project but not much heard since 2018.
For just experimenting with modems across a noisy path one could just use the built in microphone and speakers.
1. https://github.com/seemoo-lab/mobisys2018_nexmon_software_de...
In the US and other countries, it is to the best of my knowledge legal to modify firmware for hardware you own. The illegal part is broadcasting, most bandwidths are highly regulated. Listening on the other hand is mostly legal, or at the very least extremely likely to fly under the radar.
Few years back there was danger of FCC de facto banning alternative router firmwares like openwrt to prevent tampering with the wifi cards firmware.
This was the "only manufacturer signed firmware allowed" thing that thankfully was avoided.
FCC's motivation in this is to prevent people from using too much power or certain frequencies.
And as most manufacturers want to be able to sell in USA, it would have likely affected all versions. Kainda like how many wifi devices sold in Europe only go up to channel 11 on 2.4GHz, when the EU band goes up to channel 13. But ch12 and ch13 are not legal in usa, so they are blocked.
Once you have basic understanding of the topic, you can get better hardware: AirSpy (the same features as rtl-sdr, but MUCH better signal-to-noise ratio and bandwidth) or bladeRF (costly, but probably the best radio you can get now). For example I'm now building a weather radar based on bladeRF. The bladeRF has a FPGA with open-source HDL, so you can mess even with absolutely lowlevel and bleeding edge stuff.
Going back to your original question:
Most cards load firmware from a file when they are initializing (check "dmesg|grep firmware", on my machine, for example, it says it has loaded /lib/firmware/rtl_nic/rtl8153b-2.fw), you are free to modify it. However, all (or maybe almost all) wifi cards have the format of the blob completely undocumented so it would be very hard to make a modification that would allow you to transmit/receive arbitrary signals. Something similar has been achieved with GSM phones (see OsmocomBB), but it requires very complicated reverse-engineering.
Recently, there was a wifi stack released for a SDR, so the other way around: https://www.nuand.com/bladeRF-wiphy/.
https://github.com/chunkeey/carl9170fw/ https://github.com/qca/open-ath9k-htc-firmware http://netweb.ing.unibs.it/~openfwwf/
For my own use (on windows 10), I used the following device names for the microphone / speaker: Microphone: "Microphone Array (Realtek High Definition Audio)" Speaker: "Speaker/HP (Realtek High Definition Audio)"
Specific names on windows can be found in the Control Panel > System > Sound (as of the date of writing)
https://www.rtl-sdr.com/receiving-ads-b-jetliner-traffic-wit...
https://www.theverge.com/2019/11/26/20981630/raspberry-pi-pi...
This is somewhat related to the old difference between a "modem" and a "winmodem": proper telephone modems performed the de/modulation internally, winmodems did not and relied on the host processor to do so, resulting in generally lower performance but a much cheaper device. At modern network data rates it is not really feasible to do this and the general direction is towards offloading more and more of the work to the network adapter, outside of the host's control or view.
For gnuradio you need raw radio samples, often referred to as IQ data due to the nomenclature for amplitude and phase. Few devices that aren't specifically designed for software-defined radio use expose this data because it requires extra complexity in the device and tends to be rather high-bandwidth. The "RTL SDR" TV tuner dongles are so well known precisely because they contain an undocumented feature that allows a host to request raw IQ data, although at a poor sample rate and bandwidth since these devices were not really intended for it.
No. There's a LOT of stuff the wifi chip does to convert EM to data, including despreading and other computationally expensive operations.
Using an expensive SDR, you can follow this paper from 2013 to see the block diagram of what decoding wifi looks like:
https://conferences.sigcomm.org/sigcomm/2013/papers/srif/p9....
Also note that it’s easy to break FCC regulations and generally be disruptive if you mess around with this stuff and don’t know what you’re doing, and the FCC happily hands out five digit fines.
https://github.com/seemoo-lab/mobisys2018_nexmon_software_de...
https://github.com/chunkeey/carl9170fw/ https://github.com/qca/open-ath9k-htc-firmware http://netweb.ing.unibs.it/~openfwwf/
the probem would be that the cheap dtv (RTL-SDR) only gets up to 2.4MHz of spectrum bandwith, a typical DVB-S mux can be around 20MHz or the DVB-T terrestrial standard, 8MHz
The device was originally intended only as a dtv receiver and not a general purpose software defined radio. The hobbyist/ hacker community discovered the hidden debug mode that allows raw data acquisition and wrote drivers for it.
However cities are terribly noisy environments so loop antennas should work better for most people. Most amateur radio guides assume you are at least a homeowner but that is not realistic among people interested in a 20 eurodollar receiver.
The ECPA was always a complete legal atrocity, and I don't think it's been enforced for many years, and cell phones no longer use NBFM or anything else that an unauthorized receiver can decode, but...
I would love to do things like investigate how my water meter broadcasts its readings, but "latent" doesn't even begin to cover how inaccessible this stuff is. There are "tutorials", but they just say "Stick these parts together. There, now you have stuck these parts together!" (https://wiki.gnuradio.org/index.php/Simulation_example:_Narr...)
I know, open source, I should learn everything and then write better documentation.
Gnuradio was also new to me. However with two HackRFs I could do the entire thing. First replay attacks. Then trying to get the code by building up a set of processing blocks. Last synthesis of the complete signal.
Very nice to do! Felt great!
-Tom Sawyer
FM Reception with the GNU Radio Companion - https://news.ycombinator.com/item?id=25976599 - Jan 2021 (18 comments)
GNU Radio 3.9 - https://news.ycombinator.com/item?id=25823359 - Jan 2021 (53 comments)
Software Defined Radios with GNU Radio Companion - https://news.ycombinator.com/item?id=24208497 - Aug 2020 (1 comment)
Decoding radio telemetry heard on news helicopter video footage with GNU Radio - https://news.ycombinator.com/item?id=23417891 - June 2020 (36 comments)
An Implementation of Tempest in GNU Radio - https://news.ycombinator.com/item?id=23151880 - May 2020 (35 comments)
GNU Radio first steps: a FM receiver - https://news.ycombinator.com/item?id=21613988 - Nov 2019 (38 comments)
GNU Radio 3.8 - https://news.ycombinator.com/item?id=20681316 - Aug 2019 (67 comments)
Shinysdr – Software-defined radio receiver application built on GNU Radio - https://news.ycombinator.com/item?id=14170516 - April 2017 (19 comments)
A Peek at GNU Radio’s Buffer Architecture - https://news.ycombinator.com/item?id=13406505 - Jan 2017 (15 comments)
Digital Video Transmission using LimeSDR and GNU Radio - https://news.ycombinator.com/item?id=11856912 - June 2016 (8 comments)
Public safety radio systems decoding with GNU-radio OP25 project - https://news.ycombinator.com/item?id=11696507 - May 2016 (1 comment)
GNU Radio Tools for Radio Wrangling and Spectrum Domination [video] - https://news.ycombinator.com/item?id=10843175 - Jan 2016 (22 comments)
Taking control of a 36 year old NASA spacecraft using GNU radio - https://news.ycombinator.com/item?id=9476853 - May 2015 (7 comments)
Taking the Raspberry Pi 2 for a Test Drive with GNU Radio - https://news.ycombinator.com/item?id=9420427 - April 2015 (46 comments)
How to talk to a 36-year-old space probe with GNU Radio, a USRP and a big dish - https://news.ycombinator.com/item?id=8028773 - July 2014 (18 comments)
Exciting developments in GNU Radio - https://news.ycombinator.com/item?id=2279758 - March 2011 (2 comments)
GNU Radio - create your own software-defined radio device - https://news.ycombinator.com/item?id=622035 - May 2009 (6 comments)
There is an interesting project for open source LoRa physical layer implementation in GNU Radio. The authors had to reverse engineer the LoRa physical layer for the implementation because it is proprietary unlike the data link layer LoRaWAN part of it [2].
[1]Digital Signal Processing in Modern Communication Systems:
https://www.amazon.com/Digital-Signal-Processing-Communicati...
[2]LoRa PHY based on GNU Radio:
Also can be bought, but has a quite hefty price tag: https://www.amazon.com/Software-Defined-Radio-Engineers-Trav...
Other good resources are the books and courses on WirelessPi: https://wirelesspi.com/book/
also love the convenience of simply "adding a slider" whereas in matlab for example you have to build an "app" and add callback functions and do weird stuff to change the block parameters
3.6 --> 3.7 --> 3.8 all ware breaking.
So no older example or block you find will work in the current version. This is infuriating when trying to learn and following tutorials. All my friends seem to have migrated to building their prototypes in C using something like liquid-dsp instead of gnuradio. As that will compile and work next year.
This applies in general to all software. It's really nice to have old OSes use applications that can't run on newer distros.
Install GNURadio, start playing with gqrx and FM reception.
Buy a cheap radio controlled thingy, install SDR# with the plugins package and RTL_433 plugin for it and start playing.
Using a virtual machine with Ubuntu 21.04 and installing using the PPA is a good way to test it out: https://wiki.gnuradio.org/index.php/InstallingGR#Ubuntu_PPA_...
More background information on the tutorials, future plans, etc. https://www.wavewalkerdsp.com/2022/01/13/gnu-radio-tutorials...
It was really interesting to play with negative frequencies and get a better handle on it than the math alone would have ever given me.
[Edit]The WX versions of FFT and Oscilloscopes were far, FAR better than their QT replacements.
GNU Radio is targeted to a specific domain and the collection of existing nodes reflects that, similar tools exist for other domains, e.g. for CAD there is Sverchok which works with Blender: https://nortikin.github.io/sverchok/.