Tagged: webusb

ATS Mini Controller: A Web App for the ATS Mini Receiver with an Experimental Browser-Based RTL-SDR Mode

Thank you to Grzegorz Zajac for writing in and sharing ATS Mini Controller, a free web app for the ATS Mini. The ATS Mini is a low-cost pocket shortwave receiver based on an ESP32-S3 and the SI4732 broadcast radio receiver IC. The app connects to the radio over USB or Bluetooth LE from Chrome, Edge or Opera, with nothing to install. From the browser, you can tune the radio, manage its memory slots, tune straight from an offline copy of the EiBi shortwave schedule, run spectrum scans, and update the firmware.

Readers may also be interested in the experimental RTL-SDR mode. It connects to an RTL-SDR directly over WebUSB and demodulates inside the browser, without rtl_tcp or a server. It supports dongles with R820T, R820T2 and R828D tuners, including our RTL-SDR Blog V3 and V4. It has a spectrum and waterfall, up to six VFOs, IQ recording, and a long list of decoders such as ADS-B, AIS, ACARS, APRS, FT8, and POCSAG.

Grzegorz notes that "experimental" is meant seriously, because several of the decoders have so far only been tested on generated signals. Windows users will need to install the WinUSB driver with Zadig first, and Linux users will need to blacklist the DVB driver. We note that the app is free, but it does not appear to be open source.

ATS Mini Controller Start Screen Screenshot
ATS Mini Controller Start Screen Screenshot

AI Disclaimer: The author has confirmed that AI was used in the development of this software, but it was not a replacement for his own experience and engineering decisions.

OFFgrid-SDR Updated to V2.1: Adds DAB, DAB+ and DRM xHE-AAC Decoding in the Browser

Back in October, we posted about OFFgrid-SDR, a fully offline RTL-SDR receiver program that runs in a WebUSB-compatible browser from a single index.html file. Richard Didd has now written in again to let us know that the project has passed 10,000 downloads and views, and that version 2.1 adds DAB, DAB+ and DRM digital radio support.

The DAB decoder is written in JavaScript directly from the standard, while DAB+ (HE-AAC) and original DAB (MP2) audio are decoded by FAAD2 and pl_mpeg compiled to WebAssembly. DRM also now supports xHE-AAC audio via Android's libxaac decoder. Richard tested DAB off-air on the BBC National DAB multiplex, but can't receive any xHE-AAC DRM stations from the UK, so reception reports from anyone in range would be welcome.

Richard also points out the AUTO mode, which listens to a signal for a couple of seconds, identifies it, and switches to the right mode or decoder. It recognizes CW, RTTY, PSK, NAVTEX, weather fax, SSTV, FT8/FT4/WSPR, ACARS, APRS, AIS, DRM and DAB, among others. OFFgrid-SDR is open source under the GPLv3 licence and available on GitHub, with more technical details in the Hackaday.io project log.

OFFgrid-SDR Receiving the BBC National DAB Multiplex
OFFgrid-SDR Receiving the BBC National DAB Multiplex

Using a HackRF and JavaScript Browser App to Perform Rolljam Replay Attacks on a Car

Over on her website, Charlie Gerard has uploaded a page showing how she was able to perform a replay attack on a car's wireless entry system using a HackRF and a JavaScript browser app she wrote.

Previously, Charlie had already written a JavaScript browser app for ADS-B tracking with an RTL-SDR. To achieve this she used the WebUSB API, which allows USB devices to connect to JavaScript apps in a web browser.

Having recently purchased a HackRF she wanted to see if something similar was possible with the HackRF. In her post, Charlie shows and explains the JavaScript code required to connect to the HackRF from a Chrome browser, and how settings like gain, frequency and sample rate can be adjusted. She then shows how to use the Canvas API to visualize the received data. Finally, she shows how to use the File System Web API to record data, and ultimately retransmit the recorded data with the HackRF.

The replay attack itself is based on the rolljam idea. She uses two HackRF's, with one sitting closer to the car's receiver and jamming it, and another recording the car's keyfob. This prevents the car from incrementing the keyfob's rolling code, allowing it to be recorded and used again at a later time.

Charlie has also posted a video of her tests, which we embedded below.

Hacking my friend's car using JavaScript

A WebUSB Based RTL-SDR Aircraft ADS-B Decoder

Over on GitHub @devdevcharlie has uploaded open source Javascript code for creating an ADS-B Aircraft Radar system entirely within a web browser. The code makes use of the Web USB API, which enables USB devices like RTL-SDR dongles to connect directly to the code running in the web browser.

In her blog post, Charlie explains her code in greater detail, noting that it draws inspiration from AirplaneJS and rtlsdr.js. She explains how the Web USB API works, how to process the raw ADS-B data, and what her final setup looks like.

A demo site that you can use to directly connect to your RTL-SDR is available here.

In the past we've seen other WebUSB projects, like "aprs-sdr" which creates an APRS repeater system using a HackRF.

An APRS Tracker with HackRF, WebUSB and WASM

Thank you to Radoslav Gerganov for writing in and submitting news about the release of his open source web-based APRS tracker named "aprs-sdr". The web based software turns a HackRF device into a mobile APRS beacon.

Most interestingly the software works via the WebUSB interface, which allows for USB devices like a HackRF SDR to connect directly to the software through USB via the Chrome web browser. So no external app or software needs to be downloaded, all you need to do to run the code is open the hosted aprs-sdr page at https://xakcop.com/aprs-sdr with a Chrome browser, and connect the HackRF to your device.

Radoslav writes further:

The tracker is using the HTML Geolocation API to fetch the device’s location and WebUSB to talk with the SDR. The code which generates the packets is written in C++ and compiled to WASM. You can find the source at https://github.com/rgerganov/aprs-sdr.

And now to some results. I have successfully transmitted packets from my home to LZ0DOE (15km away!) using my Pixel phone, HackRF and ANT500. I find it amazing given the low TX power of HackRF.

Radoslav also notes that in the future he hopes to add other SDRs as well. He also notes that the script seems to work best on desktop Chrome. On mobile Chrome there may be a bug which stops transmission after a few packets.

Using the aprs-sdr WebUSB application.