- Transmit with hackrf one install#
- Transmit with hackrf one update#
- Transmit with hackrf one software#
- Transmit with hackrf one download#
If we don’t attenuate, we’ll run too hot and distort the audio heavily. We could have done this earlier in the chain but there’s no harm waiting until this point to make the conversion.įunny we mention attenuation as that’s exactly what the Multiply Const stage does. It gives us a lot more freedom to amplify or attenuate values without fear of clipping.
![transmit with hackrf one transmit with hackrf one](https://www.onesdr.com/wp-content/uploads/2020/04/hackrf-layout-1536x864.png)
With the streams now split into leaft and right, we can convert the samples to floating point numbers. We tell GNURadio we’re wanting to split this into vectors with 1 sample in each spread across two streams. Before the Vector to Streams stage, the audio samples are interlaced:. With the file being read in as a bunch of short values, we need to split the stereo stream into left and right. If not… well, I hope you enjoy Alvin and the Chipmonks or the Dark Lord through some unplanned pitch shifting. We can change this in the transmission chain through a variable you can double click on at the top of the graph but you need to make sure both the graph and mpg123 match.
![transmit with hackrf one transmit with hackrf one](https://i.ytimg.com/vi/42cwTWl0Jmk/maxresdefault.jpg)
Note that we’ve committed to a 48kHz sample rate. Getting a stream into a fifo is as simple as running: mpg123 -r48000 -s > solid.fifo
Transmit with hackrf one install#
If you need a copy, it’s available through apt (sudo apt install mpg123). To get some audio into it, we use the mpg123 program.
Transmit with hackrf one update#
If you want to try the transmitter graphs out for yourself, there’s a link at the bottom of this article but you’ll likely need to update the file source (double click and browse to the FIFO on your system). These are neat little buffers that appear like files allowing processes to stream data. In our example, we pulled a stream from the Internet ( Solid Radio, naturally) and wrote it to a First In First Out (FIFO) buffer. First place to look would be the audio input and processing chain. But let’s break it down and figure out what’s going on here. Straight off the bat, I’ll admit the diagram looks a little complicated. Surprisingly complicated looking this transmitter thing. We can finally take a look at the first FM transmitter chain I got working – a simple mono transmitter. A bit of sudo apt install magic and we’re cooking with gas.
Transmit with hackrf one software#
It’s a bit of a shame really.īack to the drawing board and this time I installed the software on an Ubuntu laptop. The weird bit is hackrf_info seems to work and GNURadio claims it’s running correctly but I get digital noise at best out of the transmitter. This occured no matter what combination of GNURadio and HackRF packages I pulled from ports and brew. The pretty LED comes on and I get nothing but white noise from my trusty radio. While recieving worked well using the osmocom packaged reciever, transmitting was painful – it didn’t work. My first mistake along the way was trying to run the HackRF One with a MacBook.
![transmit with hackrf one transmit with hackrf one](https://kf2mr.files.wordpress.com/2014/10/fftexample.jpeg)
DAB), spectrum analysis and possibly even astronomy experiments but as a starting project, I set myself the goal of building a stereo FM transmitter using GNURadio. The longer term ambitions include some digital (e.g. Ready to improve the range of options on the dial for neighbours within 3ft. With prices having come down a bit in recent years, I’ve finally purchased a HackRF One.
![transmit with hackrf one transmit with hackrf one](https://cdn.sparkfun.com//assets/parts/9/9/5/3/13001-01.jpg)
I never did get my amatuer radio licence, despite attending the local group for one session but I have had a bit of hands on experience with community radio stations and high density WiFi. Yes, I did build one of those simple AM transmitters in an electronics kit. Transmitting was always the more interesting part to me.
Transmit with hackrf one download#
There’s even a post on this very site from a few years back where I used a USB dongle to download weather satellite images. Software defined radio has been a thing for a few years now but the sheer cost of equipment meant put transmission out of reach.