Showing posts with label SDR. Show all posts
Showing posts with label SDR. Show all posts

Thursday, May 30, 2019

QO-100 (Eshail-2) Satellite transceiver options.

QO-100 (Eshail-2) Satellite transceiver options.

Click on Image to enlarge
SDR Options

And here is a more conventional way
Conventional MIXER upconverter


Link to http://www.giga.co.za

Friday, March 15, 2019

How to use AI (Artificial Intelligence) to identify Radio signals using a RTL SDR dongle and Linux (Ubuntu)

How to use AI (Artificial Intelligence) to identify Radio signals using a RTL SDR dongle and Linux (Ubuntu)
Identifying Radio stations

I was wondering if there is not a good framework to identify RF signals as I wanted to add some capabilities to my SDR's to identify RF signal.

I was thinking of a way to recognize Satellite signals and the automatically apply the necessary Demodulator's and decoders for the specific satellite.

I was looking at AI Deep Learning library to be able to identify RF Radio signals. There are countless deep learning frameworks available today.

By using Python3 and rtl-sdr dongle it would be possible to scan a frequency range trying to identify a satellite.

Here is a graph with all the most used Deep learning frameworks available.
Deep Learning Frameworks.

I found this opensource project called cnn-rtlsdr and it is available from github here https://github.com/randaller/cnn-rtlsdr

This framework is using Keras and TensorFlow to learn and recognize the RF signals.

So how dose it work?

You first need take an clean RF signal and digitize it and then let the framework learn its signature. The more you letting the AI framework learn a specific signal the more accurate it will able to recognize the RF Signal.



Here is my instillation procedure to get it working on my Ubuntu 18.10 Laptop

Installation Procedure.

Lets check if you have version 2 or 3 of python.
You need version 3
python -V
apt-get install git
git clone https://github.com/randaller/cnn-rtlsdr.git
cd cnn-rtlsdr



sudo apt-get update

sudo apt-get install python3-pip
sudo apt-get install rtl-sdr

sudo apt-get install build-essential libssl-dev libffi-dev python-dev

sudo pip3 install --upgrade pip

sudo pip3 install tensorflow
sudo pip3 install pyrtlsdr

sudo pip3 install scipy

[remove dongle]
rmmod dvb_usb_rtl28xxu rtl2832
[insert dongle]


Installing rtl-sdr and calibrating the frequency offset.

Using the Kal utility to calibrate your dongle offset using the GSM network.
Installing Kal
sudo apt-get install automake
sudo apt-get install libtool
sudo apt-get install libfftw3–dev
sudo apt-get install librtlsdr-dev
sudo apt-get install libusb1.0.0-dev

git clone https://github.com/steve-m/kalibrate-rtl.git
cd kalibrate-rtl/
./bootstrap
 ./configure
 make
 sudo make install


In south Africa we can use the GSM900 frequency
Lets run Kal
kal -s GSM900
Found 1 device(s):
  0:  Generic RTL2832U OEM

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Exact sample rate is: 270833.002142 Hz
[R82XX] PLL not locked!
kal: Scanning for GSM-900 base stations.
GSM-900:
    chan: 40 (943.0MHz - 736Hz)    power: 25909.17
    chan: 47 (944.4MHz - 817Hz)    power: 28430.99
    chan: 63 (947.6MHz - 128Hz)    power: 29010.57
    chan: 69 (948.8MHz - 597Hz)    power: 32479.73

We now select the strongest Station to measure the average frequency offset
kal -c 69
Found 1 device(s):
  0:  Generic RTL2832U OEM

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Exact sample rate is: 270833.002142 Hz
[R82XX] PLL not locked!
kal: Calculating clock frequency offset.
Using GSM-900 channel 69 (948.8MHz)
average        [min, max]    (range, stddev)
- 413Hz        [-460, -354]    (106, 30.402500)
overruns: 0
not found: 0
average absolute error: 0.435 ppm



We now need to test to see if we can identify any signals using the default test learn data.

Final test

The Default script will scan the normal FM broadcast band 88 to 108Mhz.
Although it detects the radio stations as TV is ok as the test data id was tv.

sudo python3 predict_scan.py
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
88.400 MHz - tv 99.98%
89.600 MHz - tv 99.91%
91.500 MHz - tv 99.99%
92.700 MHz - tv 99.93%
94.700 MHz - tv 99.13%
95.900 MHz - tv 98.04%
98.000 MHz - tv 100.00%
99.200 MHz - tv 99.95%
99.600 MHz - tv 81.13%
101.500 MHz - tv 99.91%
102.700 MHz - tv 100.00%
105.100 MHz - tv 100.00%
106.300 MHz - tv 99.56%



We now need to learn the different Rf signals so we can identify it.
Best way to do this is with an rtl dongle and your signal of interest.

Learning from existing RF signal Database.

1) "wfm" Wide band FM
2) "tv" TV signal
3) "gsm" GSM signal
4) "tetra" Tetra DMR
5) "dmr" DMR
5) "other"

Link to database https://drive.google.com/file/d/1PuhzXkk6AVwXPPKjtFUCpQVsqOOlszu8/view
Some RF signals have been learned by other users so you don't need to learn the common RF signals but just import the learn database.

Unzip the file in the cnn-rtlsdr directory
Then run the following command to learn the RF signal 
It takes about 80secons to learn a sample. So go and have a coffee or a bear :-)
Make sure you have your rtl_sdr dongle connected as the code will do a test at the end of the learning procedure.
python3 train_keras.py
You will need a lot of memory for your application tu run so close all necessary applications otherwise you will get an out of memory error..
Learning RF samples for the following RF signals.
When the learning is complete the script will do a test with the RTL-sdr dongle.
Testing signals with the new database. 


Lets learn our own signal not yet in database.
I want to learn a Satellite Telemetry signal from Satellite.

Learning my own unique signal.



python3 train_keras.py
Using TensorFlow backend.
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:1062: calling reduce_prod (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
Instructions for updating:
keep_dims is deprecated, use keepdims instead
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:2550: calling reduce_sum (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
Instructions for updating:
keep_dims is deprecated, use keepdims instead
WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:1123: calling reduce_mean (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
Instructions for updating:
keep_dims is deprecated, use keepdims instead
Train on 64972 samples, validate on 27844 samples
Epoch 1/50
64972/64972 [==============================] - 70s - loss: 0.3469 - acc: 0.8527 - val_loss: 0.0716 - val_acc: 0.9836
Epoch 2/50
64972/64972 [==============================] - 72s - loss: 0.0575 - acc: 0.9839 - val_loss: 0.0731 - val_acc: 0.9791


...
64972/64972 [==============================] - 79s - loss: 0.0016 - acc: 0.9995 - val_loss: 0.0069 - val_acc: 0.9984
Epoch 49/50
64972/64972 [==============================] - 80s - loss: 7.5126e-04 - acc: 0.9998 - val_loss: 0.0093 - val_acc: 0.9981
Epoch 50/50
64972/64972 [==============================] - 78s - loss: 0.0065 - acc: 0.9983 - val_loss: 0.0357 - val_acc: 0.9923

Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
92.9 wfm 99.9636411667
49.25 other 99.8086333275
95.0 other 99.9997735023
104.0 other 99.9999880791
422.6 other 99.9927401543
100.5 other 99.9997496605
120.0 other 100.0
106.3 wfm 100.0
942.2 other 99.999666214
107.8 other 100.0
Validation: 30.0





Thursday, December 20, 2018

Testing the Lime mini SDR with Gnuradio

lime_mini

This repository will have all my Lime mini configurations.
https://github.com/antonjan/lime_mini

Installing soapysdr on ubuntu 18.10

sudo apt-get install python3-pip python3-pyqt5 python3-numpy python3-scipy soapysdr python3-soapysdr #packages for soapysdr available at myriadrf PPA
/usr/share/doc/soapysdr-tools
cd /usr/share/doc/soapysdr-tools/ sudo add-apt-repository -y ppa:myriadrf/drivers
sudo apt-get update
sudo apt-get install limesuite liblimesuite-dev limesuite-udev limesuite-images
sudo apt-get install soapysdr-tools soapysdr-module-lms7
sudo apt-get install soapysdr
LimeUtil --info
SoapySDRUtil --info
SoapySDRUtil --find="driver=lime"

Testing the Lime Mini

LimeUtil --info
LimeUtil --find
SoapySDRUtil --info
SoapySDRUtil --find="driver=lime"
#testing
cd /home/anton/lime-tools/build
sudo ./LimeMon
sudo ./LimeScan
/usr/bin/LimeQuickTest
/usr/bin/LimeSuiteGUI
/usr/bin/LimeUtil
#LimeQuickTest

LimeQuickTest --no-gui
LimeQuickTest --gui
#testing lime
https://wiki.myriadrf.org/Testing_the_LimeSDR

LimeSuiteGUI
https://wiki.myriadrf.org/LimeSDR-USB_Quick_Test

Testing the transmitter in Gnuradio.

Link to block source https://github.com/antonjan/lime_mini/blob/master/gnuradio/Lime_transmitter_test_zr6aic.grc Here is a Gnuradio block that will modulate the Lime mini sdr with Fm from Microphone and 1 Khz zone.
In the gnuradio radio directory is a working Transmitter testing code.
Gnuradio FM modulator TX block from Mic and oscillator.

Here is the settings for the Lime mini. (you need to install the soapySDR drivers.
Settings for soapy driver for lime
Screenshot of Application
Changing the PTT value to 1 enables modulation.
Changing the enable tone to value 1 will switch the modulation from internal Microphone of laptop to the 1Khz tone generator.
The Modulation can be seen in the FFT Plot box.


Transmitting DATV for Ei'hail 2
https://www.dd1us.de/Downloads/DATV%20TX%20with%20the%20LimeSDR%20rev1.pdf

Friday, April 13, 2018

ISS SSTV Recording 13/04/2018 08:04 CAT

This is a video of SSTV recording of SSTV from International Space Station.


I had some Local Repeater QRM during the reception.

This was a nice pass.
87 deg Elevation. a very nice pass

Thursday, November 16, 2017

HF Noise monitoring system running from Live Ubuntu Memory stick with fully configured environment.

HF Noise monitoring system running from Live Ubuntu USB flash drive.

Ubuntu Live Noise Monitoring system with Persistence. 16Gb
I wanted a Preconfigured RF Noise monitoring system that I can run on my Laptop when ever I am not using it for something else.
I made this Ubuntu 16.04 Live memory stick .

This dongle is available from my Shop at http://www.giga.co.za/ocart/index.php?route=product/product&product_id=344

So how dose it work?
Configure your BIOS to boot from USB flash drive and you should then see the following screens.

Just pres enter to continue
If you see the error above just pres Enter  You should then get a screen where you can select how you want to boot your environment Persistent or not.
Select  the Persistent live boot.
Select the Persistent live option.
You could then see a screen for a few seconds looking like this.
Black screen before startup
This picture is of Ubunto 17.10 The Noise system is on Ubuntu 16.04
Here is some of the sunscreens of some of the functionality

HF Heat map
 Noise Graphs  (link to a live system)

Here is a link to a brochure on the RF Noise Monitoring system

Master Data correlation server http://rfnoise.amsatsa.org.za

Master Correlation Server.


Saturday, August 27, 2016

SDR Comparison

SDR Comparison

Name TypeFrequency rangeBand withChannelHost InterfaceWindowsLinuxMacEstimated price
AirSpy
Pre-build
24-1750 MHz
20 MSPS MSps ADC sampling, up to 80 MSPS 
1
USB
Yes
Yes
Yes using ports
US$199
SDRstick UDPSDR-HF1
Pre-built
0.1–30 MHz
80 Msps
1
1G Ethernet via BeMicroCV-A9
Yes
Yes
Yes
US$169
Apache Labs ANAN-10E
Pre-built
10 kHz – 55 MHz
122.88 Msps (14 bit ADC)
2
Gigabit Ethernet
Yes
Yes
Yes
US$995
Apache Labs ANAN-10/100
Pre-built
10 kHz – 55 MHz
122.88 Msps (16 bit ADC)
4
Gigabit Ethernet
Yes
Yes
Yes
US$1,649-US$2,449
Apache Labs ANAN-100D/200D
Pre-built
10 kHz – 55 MHz
122.88 Msps (16 bit ADC)
7
Gigabit Ethernet
Yes
Yes
Yes
US$3,299-US$3,999
SunSDR2
Pre-built
10 kHz – 160 MHz
160 MSPS
3/4
10/100 Ethernet, WLAN (embedded)
Yes
Yes
 ?
US$1,960
bladeRF
Pre-built
300 MHz - 3.8 GHz
80 kSPS - 40 MSPS
RX/TX (12-bit ADC/DAC)
 ?
USB 3.0 SuperSpeed
Yes
Yes
Yes
US$420
FLEX-6700
Pre-built
0.01–73, 135-165 MHz
245.76 MSPS (transceiver)
8/8
Ethernet
Yes
Yes
Yes
US$7,499
FLEX-6700R
Pre-built
0.01–73, 135-165 MHz
245.76 MSPS (receiver)
8/8
Ethernet
Yes
Yes
Yes
US$6,399
FLEX-6500
Pre-built
0.01–73 MHz
245.76 MSPS (transceiver)
4/4
Ethernet
Yes
Yes
Yes
US$4,299
FLEX-6300
Pre-built
0.01–54 MHz
122.88 MSPS (transceiver)
2/2
Ethernet
Yes
Yes
Yes
US$2,499
FLEX-5000A
Pre-built
0.01–65 MHz
48, 96, 192 kHz (transceiver)
2/2
1394a Firewire
Yes
No
No
US$2,800
FLEX-3000
Pre-built
0.01–65 MHz
48, 96 kHz (transceiver)
1/1
1394a Firewire
Yes
No
No
US$1,700
FLEX-1500
Pre-built
0.01–54 MHz
48 kHz (transceiver)
1/1
USB
Yes
No
No
US$650
Perseus
Pre-built
10 kHz – 40 MHz (87.5–108 MHz using FM down-converter)
80 MSPS
 ?
USB
Yes
Yes
 ?
US$1,199
SDRplay: Radio Spectrum Processor
Pre-built
0.1–2,000 MHz
0.5-12 MS/s and up to 8 MHz bandwidth
0/1
USB
Yes
Yes
Yes
US$149
ISDB-T 2035/2037
Pre-built
50–960 MHz
0.5-12 MS/s and up to 8 MHz bandwidth
0/1
USB
Yes
Yes
Yes
US$25
Soft66AD / Soft66ADD / Soft66LC4 / Soft66RTL
Pre-built
0.5–70 MHz
External ADC required (I/Q output)
0/1
USB
Yes
Unofficially
 ?
US$20
FUNcube Dongle
Pre-built
64–1700 MHz
96 kHz
0/1
USB
Yes
Yes
Yes
US$160
FUNcube Dongle Pro+
Pre-built
0.15–240 MHz, 420-1900 MHz
192 kHz
0/1
USB
Yes
Yes
Yes
US$200
FiFi-SDR
Pre-built
200 kHz – 30 MHz
96 kHz (integrated soundcard)
0/1
USB
Yes
Yes
 ?
€120
SDR-IQ
PnP
0.1 kHz – 30 MHz
66.666 MHz
1/1 ?
USB
Yes
Yes
Yes
US$525
WinRadio WR-G31DCC
Pre-built
9 kHz – 50 MHz
100 MSPS
3/3
USB
Yes
No
No
US$950
USRP B200
Pre-built
70 MHz to 6 GHz
56 Msps
 ?
USB 3.0
Yes
Yes
Yes
US$675
USRP B210
Pre-built
70 MHz to 6 GHz
56 Msps
 ?
USB 3.0
Yes
Yes
Yes
US$1,100
USRP N200
Pre-built
DC to 6 GHz
25 Msps for 16-bit samples; 50 Msps for 8-bit samples
 ?
Gigabit Ethernet
Yes
Yes
Yes
US$1,515
USRP N210
Pre-built
DC to 6 GHz
25 Msps for 16-bit samples; 50 Msps for 8-bit samples
 ?
Gigabit Ethernet
Yes
Yes
Yes
US$1,717
USRP X300
Pre-built
DC to 6 GHz
200 Msps
 ?
Gigabit Ethernet, 10 Gigabit Ethernet, PCIe
Yes
Yes
Yes
US$3,900
USRP X310
Pre-built
DC to 6 GHz
200 Msps
 ?
Gigabit Ethernet, 10 Gigabit Ethernet, PCIe
Yes
Yes
Yes
US$4,800
Cross Country Wireless SDR receiver v. 3
Pre-built
472–479 kHz, 7.0–7.3 MHz/10.10–10.15 MHz, and 14.00–14.35 MHz
External ADC required (I/Q output)
1/1
Crystal controlled two channels
Yes
Yes
Yes
US$80
Realtek RTL2832U DVB-T tuner
Pre-built with custom driver
24–1766 MHz (R820T tuner) (sensitivity drops off considerably outside this range, but can go 0–2,200 MHz (E4000 tuner with direct sampling mod))
2.4 MHz (can go up to 3.2 MHz but drops samples)
 ?
USB
Yes
Yes
Yes
US$8 - US$10
SoftRock-40
Kit
7.5 MHz
48 kHz
1
USB
Yes
Yes
Yes
US$21
SoftRock RX Ensemble II
Kit
180 kHz – 3.0 MHz, and 1.8–30 MHz operation
External ADC required (I/Q output)
1
USB
Yes
Yes
Yes
US$67
ZS-1
Pre-built
300 kHz – 30 MHz
10 kHz, 20 kHz, 40 kHz, 100 kHz
3
USB 2.0
Yes
No
No
€1,399
HackRF One
Pre-built
1 MHz - 6 GHz
8 Msps - 20 Msps
1
USB 2.0
Yes
Yes
Yes
US$299
HiQSDR
prebuilt modules & kits, pcbs
30 kHz - 62 MHz
48 - 960 kHz
 ?
10/100 Ethernet
Yes
Yes
No
US$650
US$1,400
KiwiSDR
Pre-built
0.1 - 30Mhz
30Mhz
4
Beagle black
yes
yes
yes
 USD 99
LimeSDR
Pre-built (full Open Source / Hardware)
100 kHz to 3.8 GHz
61.44 Msps (12 bit ADC)
 ?
USB 3.0, PCIe
Yes
Yes
Yes
US$299(USB) US$799(PCIe)

Wednesday, August 24, 2016

How do you build a 1U Cube-Sat Linear transponder using SDR / DSP technology with limited Power?

How do you build a 1U Cube-Sat Linear transponder using SDR / DSP technology with limited Power?



Requirements:

Satellite requirements.
  1. Linear Transponder 70cm (437Mhz) up-link and S band (2.4GHz or 1.2Ghz down) Down-link (Bandwidth ? 250Khz on 70cm ?)
  2. Satellite Low Earth orbit (LEO) altitude between 650 kilometers. We need this so we can calculate path loss and RF power and antenna gain requirements.
  3. Available Power 1.5W for transponder from Solar panels and battery system.
  4. Telemetry mode? CW / AX25 / AFSK 9k6 /....  
    1. UHF Beacon recomendation.
      • UHF Beacon interval:  about 55 seconds
      • UHF Transmit power: ~ 1 W
      • AFSK AX25 1k2 and fallback of CW 10WP 
  5. Satellite antennas for 70cm ? and (Polarization ?) 
  6. Satellite antennas for 2.4Ghz / 1.2Ghz and (Polarization ?) 
  7. Telemetry Requirements ? (ID, Temperature, Power in, Power out, Battery left, Transponder Mode status, Antenna Status, Satellite Orientation, ........)
  8. Inter board Connector Specification (PC/104 communication)
  9. OBC, SOLAR,charger,Orientation and Battery from existing Satellite ?
  10. 1 U Cube-Sat Space frame from existing Satellite (10x10x10) 1kg
  11. DSP 10 to 14Bit A/D /D/A Dynamic range. what is good enough ?
  12. PCB Board size details PC104 with cutouts for wire.
  13. Space frame and Solar panel frame and Antenna deployment. (out of scope)
  14. Solar panels. (Out of Scope)
  15. Power regulator and Charge regulator and Battery. (out of Scope)
  16. Orientation controls. (out of scope) (Stabilization)
  17. RF Linear Transponder using SDR / DSP. (70cm up 2.4Ghz or 1.2Ghz down)
  18. OBC (In scope ARM M4 or possibly A9) (FreeRTOS)
  19. Inter board communication standard.

Out of Scope for now:


  1. Space frame, Solar panels and panels frame.
  2. Solar panels
  3. Power regulator and Charge regulator and Battery.
  4. Orientation controls.
In scope for now:

  1. Linear Transponder using SDR / DSP. (ARM Processor possibly not FPLG due to power constraint.)
  2. Telemetry TX
  3. Command control RX

Block diagram.


Transponder SDR transmitter. (Down-link 145.9?? MHz USB) (not confirmed) (250Khz)


Telemetry transmitter

  • Estimated TX full power for beacon and transponder (300 mW) when Sat is in sunlight.
  • When satellite is in eclipse low power of about (30mW). 

Transponder SDR receiver. (Up-link 435.??? MHz LSB ) (not confirmed) (250Khz)


  • Estimated maximum TX up-link power of 5 watts with a 7 dBi gain antenna. 

Beacon / Telemetry

Here are several DDS signal generators I'm looking at:

  1. AD9833  0 - 12.5 Mhz 
  2. AD9850  0 - 50 Mhz
  3. AD9851  0 - 70 Mhz 
  4. Si5351    0 - 150 Mhz
  5. Si5351A 0 - 290 Mhz
  6. AD9959  0 - 500Mhz
  7. AD9952  0 - 500Mhz Practical max 160Mhz depending on patern
Ref : Examples code for the STM32f4  and AD9850  https://zissisprojects.wordpress.com/2015/01/24/stm32-f4-discovery-and-ad9850-dds/

1.2Ghz band plan for Downlink





TX

  1. https://github.com/F5OEO/rpitx
  2. http://ebrombaugh.studionebula.com/radio/txdac/index.html
  3. https://www.etherkit.com/rf-modules/si5351a-breakout-board.html
  4. http://www.simplecircuits.com/files/Download/QEX_release.pdf
  5. http://www.amrad.org/projects/sdr/
  6. https://myriadrf.org/projects/rdk/
  7. http://www.eevblog.com/forum/projects/the-sdr32-a-stm32-based-software-defined-radio/
  8. http://www.stm32-sdr.com/styled/index.html  (PSK)
  9. https://wiki.analog.com/resources/eval/user-guides/ad-fmcomms2-ebz/software/baremetal?rev=1395324588#code_size_information ( AD9361 NON OS Drive)
  10. https://github.com/GomSpace/libcsp (Cubesat Space Protoco)
  11. https://github.com/robots/APRS  (STM32 APRS code)
  12. https://michaldemin.wordpress.com/2012/02/27/cheap-afsk-tnc/  (AFSK stm3  2)
  13. https://github.com/athirasubhash/AX25MODEM (AX25 for STM32)
  14. www.analog.com/en/education/education-library/videos/3845680080001.html (Video Analog devices)
  15. https://datasheets.maximintegrated.com/en/ds/MAX2837.pdf  (IQ front end Maxim)
  16. https://www.maximintegrated.com/en/products/analog/data-converters/analog-front-end-ics/MAX5863.html (A/D and D/A MAXIM)
  17. https://github.com/mossmann/hackrf/blob/master/firmware/common/max2837.c (max2837 c Library)
  18. http://www.g4jnt.com/DDSVHFBeaconDriver.pdf  (DDS beacon generation)

Possible def tools.

  1. GNU radio
  2. Math lab
  3. ARM DEV board tools. (How to setup Eclipse for Arm development)
  4. Real time OS https://istarc.wordpress.com/2014/08/04/stm32f4-behold-the-project-wizard/
  5. Installing FreeRTOS on STM32F4 https://istarc.wordpress.com/2014/07/10/stm32f4-deploy-freertos-in-under-10-seconds/
Ref :

Friday, July 1, 2016

OpenWebRX with KiwiSDR covering the whole HF band 0 -30Mhz is now up and running in South Africa

OpenWebRX SDR covering the whole HF band 0 -30Mhz  is now up and running in South Africa

This Web based SDR http://zr6aic.giga.co.za:8073 is using the new KiwiSDR Hardware running on Beagle bone.

KiwiSDR using OpenWebRX running on Beagle.
This Web based SDR is covering the Whole HF band 0- 30Mhz. here is the link go and check it out.

Here is the list of receivers around the world using the OpenWebRx platform.

http://sdr.hu/
Here is the list of OpenWebRX servers around the world.

http://sdr.hu/

The KiwiSDR is available from Giga Technology. http://www.giga.co.za


Thursday, July 16, 2015

What can I do with the TP-Link TL-WR703N router? (APRS, SDR)

What can I do with the TP-Link TL-WR703N router? (APRS, SDR)



Basically this device is meant to be a little 3g travel router. You can plug in a 3g USB adapter and share that Internet connection to multiple devices over WIFI. It also supports Ethernet. It runs a Linux operating system so this opens up lost of Amateur Radio opportunities. So for $24 you can get a 400mhz Linux computer, with Ethernet, Wifi and USB ports and several GPIO pins.
This router is available from http://www.giga.co.za/ocart/index.php?route=product/product&path=99&product_id=150

1) SDR
Using a RTL-SDR dongle on TL-WR703n you can listing to Amateur radio frequencies.
If you’re running OpenWrt Barrier Breaker (i.e. trunk) you can install librtlsdr SDR dongle labraries
Here is the pre compiled applications
https://steve-m.de/projects/rtl-sdr/openwrt/packages/

2) APRS
This unit can be used to do APRS with external GPS unit.
More info how to make this router a (APRS) Igate go  to http://www.aprs4r.org/cgi-bin/trac.cgi/wiki/OpenWrtAPRS4RInstallation
The router is well documented http://wiki.openwrt.org/toh/tp-link/tl-wr703n/pcb

Monday, October 27, 2014

How to install Gqrx SDR software on Linux using your RTL dongle or Softrock receivers.

How to install the Gqrx SDR software on Linux using your RTL dongle or Softrock receivers. (Ubuntu)

RTL _dongle

The RTL Dongles is available from http://www.giga.co.za/ocart/index.php?route=product/category&path=59_63
Gqrx SDR software

Update the repository files and update your Linux to the latest versions.
sudo apt-get update
sudo apt-get upgrade

Now install the libraries ... get coffee
Now install the libraries for GQRX SDR on you Linux (Ubuntu)

sudo apt-get install cmake python-cheetah doxygen libboost-all-dev python-sphinx libfftw3-dev python-numpy libqwt-dev libgsl0-dev python-wxgtk2.6 qtcreator libpulse-dev swig libcppunit-dev libusb++-dev libusb-dev libusb-1.0-0-dev maybe some more coffee ;-)

For Ubuntu 16.04 I had to add the following libraries
sudo apt-get install qtdeclarative5-dev libqt5svg5*

Build and Install GNU Radio libraries


Create a directory where you will install the SDR software in your favorite install directory.
mkdir gqrx
goto directory you created.
cd gqrx
get the gnuradio source code
git clone http://git.gnuradio.org/git/gnuradio.git
git clone https://github.com/gnuradio/gnuradio.git
if you are using the old git before 1.6 then use this command
git clone git://gnuradio.org/gnuradio

it looks like for Ubuntu 16.04 you need to use the following git clone

git clone --recursive http://git.gnuradio.org/git/gnuradio.git
You should see
Cloning into 'gnuradio'...
got to the newly created directory gnuradio when the cloning is done
cd gnuradio
make a build directory
mkdir build
goto the build directory
cd build
Compile gnuradio
cmake ../
if you get an error -- WARNING: Found a known bad version of Boost (v104601). Disabling.
Then run cmake -DENABLE_BAD_BOOST=True ../
This can take a couple of hours depending on the speed of you Linux server.
make
Now install the newly compiled binaries into the required directories
sudo make install
Now load the the gnu drivers
sudo ldconfig

Build and Install RTL-SDR drivers
go to your favorite install directory
cd ../../../
get the latest source code from osmocom.org
git clone git://git.osmocom.org/rtl-sdr.git
go to the newly created directory
cd rtl-sdr/
Now compile the rtl drivers
create the build directory
mkdir build
go to the build directory
cd build
compile the code
cmake ../
make
now install the compiled binaries
sudo make install
load the drivers
sudo ldconfig

now copy the content of the file rtl-sdr.rules and append it to the /etc/udev/rules.d/70-persistent-cd.rules file

use your favorite editor

vi rtl-sdr.rules  and copy the content.

then open the file /etc/udev/rules.d/70-persistent-cd.rules

sudo vi /etc/udev/rules.d/70-persistent-cd.rules and append the previous files content at the end
in ubuntu 16.04 the file name was /etc/udev/rules.d/rtl-sdr.rules

This is how my file looked like

# This file maintains persistent names for CD/DVD reader and writer devices.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-cd-aliases-generator.rules
# file; however you are also free to add your own entries provided you
# add the ENV{GENERATED}=1 flag to your own rules as well.
# hp_DVD_RW_AD-7581S (pci-0000:00:1f.2-scsi-0:0:0:0)
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="cdrom", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="cdrw", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="dvd", ENV{GENERATED}="1"
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-0:0:0:0", SYMLINK+="dvdrw", ENV{GENERATED}="1"
#************************* below is what was appended ****************
# original RTL2832U vid/pid (hama nano, for example)SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2832", MODE:="0666"
# ezcap EzTV668 (E4000)SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", MODE:="0666"
# Terratec Cinergy T Stick Black (rev 1) (FC0012)SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00a9", MODE:="0666"
# Terratec NOXON rev 1 (FC0013)SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00b3", MODE:="0666"SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00b4", MODE:="0666"SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00b7", MODE:="0666"SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00c6", MODE:="0666"
# Terratec Cinergy T Stick RC (Rev.3) (E4000)SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00d3", MODE:="0666"
# Terratec T Stick PLUS (E4000)SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00d7", MODE:="0666"
# Terratec NOXON rev 2 (E4000)SUBSYSTEMS=="usb", ATTRS{idVendor}=="0ccd", ATTRS{idProduct}=="00e0", MODE:="0666"
# PixelView PV-DT235U(RN) (FC0012)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1554", ATTRS{idProduct}=="5020", MODE:="0666"
# Astrometa DVB-T/DVB-T2 (R828D)SUBSYSTEMS=="usb", ATTRS{idVendor}=="15f4", ATTRS{idProduct}=="0131", MODE:="0666"
# Compro Videomate U620F (E4000)SUBSYSTEMS=="usb", ATTRS{idVendor}=="185b", ATTRS{idProduct}=="0620", MODE:="0666"
# Compro Videomate U650F (E4000)SUBSYSTEMS=="usb", ATTRS{idVendor}=="185b", ATTRS{idProduct}=="0650", MODE:="0666"# Compro Videomate U650F (E4000)SUBSYSTEMS=="usb", ATTRS{idVendor}=="185b", ATTRS{idProduct}=="0650", MODE:="0666"
# Compro Videomate U680F (E4000)SUBSYSTEMS=="usb", ATTRS{idVendor}=="185b", ATTRS{idProduct}=="0680", MODE:="0666"
# Sweex DVB-T USB (FC0012)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1f4d", ATTRS{idProduct}=="a803", MODE:="0666"
# GTek T803 (FC0012)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1f4d", ATTRS{idProduct}=="b803", MODE:="0666"
# Lifeview LV5TDeluxe (FC0012)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1f4d", ATTRS{idProduct}=="c803", MODE:="0666"
# MyGica TD312 (FC0012)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1f4d", ATTRS{idProduct}=="d286", MODE:="0666"
# PROlectrix DV107669 (FC0012)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1f4d", ATTRS{idProduct}=="d803", MODE:="0666"
# Zaapa ZT-MINDVBZP (FC0012)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d398", MODE:="0666"
# Twintech UT-40 (FC0013)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d3a4", MODE:="0666"
# ASUS U3100MINI_PLUS_V2 (FC0013)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d3a8", MODE:="0666"
# Dexatek DK DVB-T Dongle (Logilink VG0002A) (FC2580)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d19", ATTRS{idProduct}=="1101", MODE:="0666"
# Dexatek DK DVB-T Dongle (MSI DigiVox mini II V3.0)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d19", ATTRS{idProduct}=="1102", MODE:="0666"# Dexatek DK 5217 DVB-T Dongle (FC2580)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d19", ATTRS{idProduct}=="1103", MODE:="0666"
# MSI DigiVox Micro HD (FC2580)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d19", ATTRS{idProduct}=="1104", MODE:="0666"
# DigitalNow Quad DVB-T PCI-E card (4x FC0012?)SUBSYSTEMS=="usb", ATTRS{idVendor}=="0413", ATTRS{idProduct}=="6680", MODE:="0666"
# Leadtek WinFast DTV Dongle mini D (FC0012)SUBSYSTEMS=="usb", ATTRS{idVendor}=="0413", ATTRS{idProduct}=="6f0f", MODE:="0666"
# Genius TVGo DVB-T03 USB dongle (Ver. B)SUBSYSTEMS=="usb", ATTRS{idVendor}=="0458", ATTRS{idProduct}=="707f", MODE:="0666"
# GIGABYTE GT-U7300 (FC0012)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d393", MODE:="0666"
# DIKOM USB-DVBT HDSUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d394", MODE:="0666"
# Peak 102569AGPK (FC0012)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d395", MODE:="0666"
# SVEON STV20 DVB-T USB & FM (FC0012)SUBSYSTEMS=="usb", ATTRS{idVendor}=="1b80", ATTRS{idProduct}=="d39d", MODE:="0666"
# SVEON STV21 DVB-T USB & FMSUBSYSTEMS=="usb", ATTRS{idVendor}=="2b80", ATTRS{idProduct}=="d3b0", MODE:="0666"


Building and Install gr_osmoSDR

cd ../../
git clone git://git.osmocom.org/gr-osmosdr
cd gr-osmosdr/
mkdir build
cd build/
cmake ../ -Wno-dev
make
sudo make install
sudo ldconfig



Building and Install Gqrx with command line.

git clone https://github.com/csete/gqrx.git gqrx.git
cd gqrx.git
mkdir build
cd build
cmake ..

make
sudo make install
If you want to build the code using the Qt development environment then follow the steps below

cd ../../
git clone https://github.com/csete/gqrx.git
cd gqrx
qtcreator ./gqrx.pro

A new window will open (the QT compiler).
When it opens click the build menu then the build all option.

QT Compiler

you should see The process "/usr/bin/make" exited normally.

Plug in your RTL dongle.
Now run gqrx.
gqrx

Select Yes
GQRX Should now be open. On the first run you will be prompted for a device listing.

Select your SDR (in my case RTL dongle)

 In the device drop down menu select "ezcap USB 2.0 DVB-T/DAB/FM Dongle", then continue to the main GQRX window.

Select File->Start DSP. You should now be receiving something.
Tune to a local radio station between 88-108Mhz FM.
select Wide FM Stero as the Mode Type.



Now connect a proper external antenna to your RTL dongle or Softrock HF/VHF kit.
Hope you have lost of fun ;-)

Here is a video of GQRX using the 100Khz to 17Ghz RTL dongle in direct conversion mode.


How to configure your direct conversion dongle.

Here is the screen-shot of the configuration on Linux for Gqrx
  1. Device Select other
  2. Device String rtl=0,direct_sample=2 (possibly 0/1/2) (This number could differ depending on which pin was wired via balin)
 
 
Device String rtl=0,direct_sample=2
Here is a picture of the 100KHX to 1.7Ghz rtl dongle
100Khz to 1.7Ghz RTL direct conversion dongle
They are available at http://www.giga.co.za/ocart/index.php?route=product/product&path=59&product_id=178