My satellite-enabled device sat on my bench, apparently transmitting, but I never received any packets. I had no idea why.
What if I could know that a test device is reliably transmitting when a satellite passes overhead? What if I could test it without any satellites in the loop? I built a browser-based tool that talks to a $5 dev board and tests satellite transmission before the next satellite pass.

The web interface decoding data captured with an ESP32-S3.
How Hubble talks to satellites over Bluetooth radios
Hubble Network uses off-the-shelf Bluetooth chipsets to transmit information in the 2.4 GHz ISM band. For the “terrestrial networks” this is via Bluetooth advertising packets to more than 100 million gateways worldwide. For communicating with Hubble Network’s satellites, the Hubble Device SDK directly controls the 2.4 GHz radio and uses FSK to transmit signals 100s of km into low-earth orbit (LEO).
Hubble’s capabilities enable novel applications in the asset tracking and telematics space. At one time, you needed to build your own network of gateways and access points to create a bespoke Bluetooth network. Now you can use Hubble’s network of interconnected gateways throughout the world in populous areas and satellite connectivity when you move outside those areas.
Setting up the satellite experiment
Today we are going to talk about transmitting to the satellite network. The first step is choosing compatible hardware that works with the Hubble SDK and also has sufficient power to transmit to the Hubble Network satellites. This requires a +20 dBm output power for devices in North America. For my first experiment, I chose the nRF21540-DK, a Nordic Semiconductor development kit that has the nRF52840 Bluetooth chip and the nRF21540 RF front-end module (FEM). Connecting the output of the Bluetooth chip to the FEM enables additional output power. The board also has a well-tuned antenna onboard, which helps get that power up to the satellite.
Running the sample was as simple as using the Hubble SDK to work with Zephyr and the nRF21540-DK. I needed to bring my device key in order to encrypt the data payload so that it is allowed onto my account. I also have satellite access enabled, having signed up for a free trial for 45 days (yes, even Hubble employees can take advantage of this amazing trial deal). Using Zephyr with Nordic parts is actually using the nRF Connect SDK, which is their downstream variant of Zephyr. It closely tracks upstream Zephyr, and for this sample it behaves the same. The Hubble SDK is pulled in as a component of the build, and the sample that talks to the satellite is my first stop.

The Hubble Device SDK on GitHub.
I programmed my board without any issue, and the serial terminal showed that I was transmitting every 30 seconds. Wonderful! Now I just had to wait for a satellite pass.
A disappointing first transmission
I was transmitting using the test program that blasts out the satellite packet on a regular interval. My device was not power-optimized at all, and this was a known constraint of my system. This brute-force method was meant to maximize transmission to the satellite. I had a huge power bank plugged into this board when it wasn’t plugged into USB on my computer.

The nRF21540-DK running off a consumer power bank for its first satellite pass.
What I didn’t know was whether I was transmitting. I believe serial readouts from my embedded programs, but that’s a far cry from “fully working”. Understanding whether the proper RF energy is being transmitted from the antenna and if it is formatted exactly as needed is crucial for transmission. There are a couple of steps in between that could have gotten messed up. How could I figure out whether or not it was transmitting properly?
I calculated the window when my satellite would pass overhead and turned my board on to transmit about 10 minutes prior to the pass happening. I didn’t need to be there because it was transmitting every 30 seconds. I walked off and decided to check the console/dashboard later because I understood that there’s also a time delay between when the packets hit the satellite and when downlink happens from the satellite to the cloud interface (Hubble Network satellite SLA is 6 hours from transmit to packet).
Eight hours after the pass, still nothing. My satellite pass was a failure.
Enter the Pluto SDR
Hubble has a recommended path for testing the output of a satellite transmitter involving the Pluto SDR. That hardware is a reasonably priced software-defined radio, or SDR, from Analog Devices. Additionally, Hubble has a Python interface that processes the output from the Pluto SDR and tells the user whether or not they are transmitting properly. This has been crucial in getting satellite users off the ground (ha) with their deployments and showing them what data looks like. It works great, especially in the 2.4 GHz region. Low-cost SDRs like the RTL-SDR top out well below 2.4 GHz and can’t stream IQ data over USB fast enough for wide bandwidth. The Pluto SDR offers wide bandwidth at a low cost relative to the rest of the SDR world. Hubble has built on top of that capability with some fascinating tools that give you insight into what your device is doing.
The downside is that even a reasonably priced software-defined radio can still cost $200-300. Not out of reach for a technical team, but still not widely accessible. What’s more, my field satellite run was on a Friday, and I was very anxious to get a reading from the satellite. By the time I figured this out, it was way too late for delivery over the weekend, so I turned to an all-too-common tool in our collective tool belts.
Building on the ESP32-S3
There has been a bunch of exciting community work in the past few months around the Espressif ESP32-S3’s undocumented IQ output that can be routed out to the USB port. This has provided a range of different tools that make it possible to view 2.4 GHz data without a full SDR. To be more precise, this is actually the basics of an SDR, simply tuned up to the proper frequency with a somewhat limited bandwidth around that frequency.
The limitations of the ESP32-S3 are the USB output and the bandwidth capability of this part. Some projects online show that a newer version of the part also has this undocumented IQ output and higher bandwidths, moving from 500 kHz as on the S3 to 40 MHz on the S31, a modern variant of this part. Even with 500 kHz, though, we can do some very interesting things.
In our case, we want to be able to see the FSK signal being sent by our test program. This follows Hubble’s packet format for satellite data. See how the SDK builds each FSK packet here.
In my case, I only really care about a binary output: is the nRF21540-DK transmitting or not. If I can see the full packet on the screen, I don’t particularly care about the implementation details at the beginning. I want to know: is the radio outputting anything at all? Once we get past that step, then we can start to dig in further. For instance, once I know the radio is sending anything at all, then I might start digging into the signal integrity of the radio, the tuning of the antenna, and the payload that is attached to this packet.
Building a $5 Web Serial uplink tester
This setup is actually a couple of different pieces all glued together. First, we need a new firmware image that goes on the ESP32-S3. This is a greenfield implementation that enables the SDR to work in the first place. We need to route this data out over the USB.
Because this is an ESP32, we can lean on the esptool-js library that easily programs Espressif parts using Web Serial. A user opens this page, clicks the attach button, and a prompt comes up to select the board that is connected to the computer. Once the board is selected, the Web Serial program checks if it is the proper version and, if not, offers to upgrade it to the latest version of firmware. This keeps the capabilities of the ESP32-S3 synchronized with the browser-side software we’ll talk about below.

What you see when you open the web interface with a new ESP32-S3 plugged in.
Next, we need to route this raw IQ data over USB to the computer. In an optimal case, the interface can display data without any installation. Since we’re already using Web Serial, let’s continue to route data over that same connection after the firmware is programmed. During development, we had to test that there was sufficient bandwidth to send the data through in order to capture the packets we wanted to.
Leaning heavily on the Python tooling that we already had for decoding packets using the Pluto SDR, we now pull that Python processing into the browser using WebAssembly. This is a somewhat heavy-handed method, but it reduces duplicate work. The capabilities we show on screen are some of the visualization capabilities that we have in the same tooling in the pyhubblenetwork repository. At its core, we are transforming the raw IQ data into frequency bins that can be shown on a waterfall plot and then be processed later.

The packet inspector for a single packet: the tone demodulated in each 8 ms symbol, split into preamble, header and payload, with the lines marking frequency hops.
When we detect a valid preamble coming in over this link using FSK, we can then read out the rest of the header and the payload as one long string. The final piece is applying the same device key I flashed onto the nRF21540-DK, which can now be reused to decrypt the encrypted data from the satellite test board. In this example, this board is the nRF21540-DK transmitting data over the encrypted satellite link.

Without the device key, the web interface still finds and decodes each packet, but the payload stays encrypted.

With the device key loaded, the payloads come out in plain text (I was stepping bits across the payload here, this does not represent a real payload).
What actually happened on that failed first pass?
Building the web interface took about 2 days, so I skipped a few more passes instead of just retrying blindly. After the web interface was done, I was certain that my board was transmitting properly. In fact, I could actually see the decoded payload coming directly from this board. As an engineer, that is a very reassuring thing. In a troubleshooting context, I had eliminated one possible thing that went wrong. When I’m sending a signal 600 km up using 2.4 GHz… that list can get pretty long.
Later, I figured out it was not about the transmission at all: it was all about the power. I solved this the brute force way: on a subsequent transmission, I plugged in the device and watched that the LEDs were all lit and blinking as expected during the two-minute window when the satellite was going overhead. I was able to tell it worked because the data showed up in the console. The source of the problem is that I used a consumer-grade power bank in order to place the board outside. I wanted to be away from my bench, and in clear view of a satellite. When the nRF21540-DK was not transmitting, the logic inside the power bank detected the device was no longer drawing current. It then turned off its output so that it didn’t burn extra watts while a device was plugged in. That also meant when the board was ready to transmit to the satellite during an overpass, it didn’t have the power required to do so. I later found out that a double-tap on the button of the power bank puts it into an “always on” mode that doesn’t go into low power shutdown.
With a fixed power setup and a better understanding of the signal being sent overhead, I felt more confident about sending my next packet during subsequent passes. I have been regularly transmitting and collecting my data. I have officially transmitted to space using an off-the-shelf Bluetooth chip. In the process, I made a pretty useful tool. It isn’t published yet, but we’ll be writing more about it here in the future. If you’re ready to start your journey, check out our SDK documentation to implement Hubble directly onto your existing hardware or sign up for a free trial and start experiencing what Hubble Network has to offer.

