How to Change Serial Number of Dongle - ADSB 1090 + UAT 978 Dongles Plugged Into Same Pi


#1

All generic DVB-T have serial # 00000001, and all Pro Stick and Pro Stick Plus have serial # 00001000.

The two dongles on same Pi require different serial numbers to be selectively picked by dump1090 and dump978. For example, if the dump1090 config is set to device=0 and dump978 is set to device=1, and dongles serial numbers are also changed to 00000000 and 00000001, the two dumps will connect to respective dongles. If 1090 mhz antenna is connected to dongle with serial # 00000000, and 978 mhz antenna is connected to dongle with serial # 00000001, the system will work ok.

How to Change Serial Number of A Dongle

In tutorial below it will be changed from default 00000001 to 00000000.

(A) Dongle Plugged into Raspberry Pi

STEP-1

First stop the dump1090 to make Dongle free for use by rtl tools.

#Give one of the command according to version of dump1090 you have installed
#If you are not sure of version, give all three commands one by one
sudo systemctl stop dump1090
sudo systemctl stop dump1090-mutability
sudo systemctl stop dump1090-fa

.

STEP-2

Install package rtl-sdr, if not yet done.
The tool rtl_eeprom is part of package rtl-sdr

sudo apt-get update
sudo apt-get install rtl-sdr

.

STEP-3

Now give the command rtl_eeprom -s 00000000 to reset the serial number
The last line of output will ask confirmation to go ahead with change.
Type y and press Enter key

rtl_eeprom -s 00000000
Found 1 device(s):
  0:  Generic RTL2832U OEM

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner

Current configuration:
__________________________________________
Vendor ID:              0x0bda
Product ID:             0x2838
Manufacturer:           Realtek
Product:                RTL2838UHIDIR
Serial number:          00000001
Serial number enabled:  yes
IR endpoint enabled:    yes
Remote wakeup enabled:  no
__________________________________________

New configuration:
__________________________________________
Vendor ID:              0x0bda
Product ID:             0x2838
Manufacturer:           Realtek
Product:                RTL2838UHIDIR
Serial number:          00000000
Serial number enabled:  yes
IR endpoint enabled:    yes
Remote wakeup enabled:  no
__________________________________________
Write new configuration to device [y/n]? y

#After typing y and pressing Enter key, you will get this confirmation message
Configuration successfully written.
Please replug the device for changes to take effect.

.

.

(B) Dongle Plugged into Windows Computer

STEP 1:

Install dvb-t rtl driver zadig if not yet done so, as detailed below.

(1) Download Zadig 2.3.exe from http://zadig.akeo.ie/

(2) Plug the DVB-T or ProStick in your Windows Computer.

(3) Follow the steps below:

  1. Double click Zadig 2.3.exe to run it.
    The window below will open.

zadig-1

.

  1. On main menu, click “Options”.
    On the drop-down, place a check mark beside “List All Devices”.

zadig-2
.

  1. From list of devices, select “RTL2838” which is actually DVB-T/ProStick.
    Now click button which will either say “Install Driver” or “Reinstall Driver”

zadig-3
.
.

STEP 2:

Download RelWithDebInfo.zip from here:
Download Link: http://osmocom.org/attachments/download/2242/RelWithDebInfo.zip

Web Page: https://osmocom.org/projects/sdr/wiki/rtl-sdr
(scroll down to bottom of page to find download link)

STEP 3:

(a) First EXIT your dump1090 for windows, or RTL1090 or ModeSdeco2 or any other software which is using DVB-T to make the Dongle free for test.
(b) Un-zip RelWithDebInfo.zip. It will create a folder RelWithDebInfo.
Inside this folder there is another folder rtl-sdr-release which contains several files and 2 folders named x32 and x64.
© Go to folder x32. You will find many rtl tools in it as shown in the screenshot below.

.

STEP-4

In folder x32, right-click and create New Text Document

STEP-5

Open the New Text Document and type
rtl_eeprom -s 00000000

eeprom-2

STEP-6

Save the file as change-serial.bat
While saving, make sure that

  1. File name contains .bat at the end
  2. “Save as type” is selected "All Files"
    Please see screenshot below.

STEP-7

Double click the file change-serial.bat to run it

STEP-8

Upon double clicking the file change-serial.bat, command console will open, with last line asking confirmation to change serial number.
Type y and press Enter key. The serial number will change and command console will close immediately.

eeprom-5

STEP-9

To check if the number has actually changed, again double click the file change-serial.bat, and it will show changed serial number.
Type n and press Enter key to close console


Rtlsdr-device-index not working
How to setup the SDR for maximum and close range? Impossible?
One Pi, Two Dongles, Two Maps, Two Receivers
One Pi, Two Dongles, Two Maps, Two Receivers
#2

The above instruction writes to the EEPROM on the prostick or RTL dongle. It will persist until over written.

You don’t need to set this if you only have one prostick. PiAware will use the first dongle it finds. This is used for people with multiple prosticks or RTL dongles. You can then set a specific dongle to be used every time on startup.

PiAware will use the serial number or device index by setting piaware-config rtlsdr-device-index
https://flightaware.com/adsb/piaware/advanced_configuration
example:
piaware-config rtlsdr-device-index 00001000


#3

You are right. This is basically useful where two dongles, one for 1090 mhz, other for 978 mhz are used.

An example is Nooelec’s bundle for stratux, which has 2 serialized dongles for correct connection to 1090 and 978 antenna+dongle combo.

NooElec Dual-Band NESDR Nano 2 ADS-B (978MHz UAT & 1090MHz 1090ES) Bundle For Stratux
"Each SDR is lab-calibrated and serialized for easy Stratux installation. "