Logo

AS-COMSAT_1

AS-COMSAT 2 x  1 U cubesat system

 

Administration Documents

Technical Documents

 

 

AS-COMSAT Administration Report 2020-2023 (docx)

AS-COMSAT Administration Report 2020-2023 (pdf)

ICS/IAP-SAT On-Board-Computer System (Trainee Report, Jana Othman, Aug 2021)

 

AS-COMSAT-1 TechnicalDevelopmentDocumentation (docx)

AS-COMSAT-1 TechnicalDevelopmentDocumentation (pdf)

Tasks (also suitable for academical student tasks):

 

Installing HackRF on Raspberry:

HackRF One installation

  • Prerequisites
    If you did not install these for SDRplay:
    sudo apt install libusb-1.0-0-dev libfftw3-3 libfftw3-dev
  • Install
    cd ~/
    git clone https://github.com/mossmann/hackrf
    cd hackrf/host
    mkdir build
    cd build
    cmake ..
    make -j 4
    sudo make install
    sudo ldconfig
  • reboot
  • You may need to update the firmware to match the version of the driver. As of this writing, the latest firmware/driver version was 2021.03.1
    Most HackRF devices have firmware version 2018.01.1 or earlier. Use hackrf_info to see if the firmware version matches the driver that you installed.
    hackrf_info
    
    # If you see "Firmware Version: 2021.03.1 (API:1.04)", then it is up to date.
    
    # Transfer rate test:
    hackrf_transfer -r /dev/null -s 21500000
    
    #Test sending data:
    hackrf_transfer -t /dev/zero
    
  • Firmware updating instructions are based on this:
    https://hackrf.readthedocs.io/en/latest/updating_firmware.html#updating-the-spi-flash-firmware
    Note that the zip and tar.xz archives have the firmware files. The git clone procedure does not.

    Download hackrf-2021.03.1.zip
    Extract only the firmware-bin directory into the ~/hackrf directory
    cd ~/hackrf/firmware-bin
    
    # To update the firmware on a working HackRF One, use the hackrf_spiflash program:
    hackrf_spiflash -w hackrf_one_usb.bin
    
    # Press the reset button on the HackRF.
    hackrf_info
    
    # The new firmware version should now displayed.

Installing gnuradio on raspberry:

apt-get install -y gnuradio

 

running gnuradio:

gnuradio-companion

 

Installing HackRF on Windows:

 

Installing Drivers for RTL-SDR and HackRF on Windows 10

 
Since I have been using software defined radio (SDR) tools on Linux platform for a long time, it was a very new thing to me when I had to use some SDR tools on Windows. Anyway, the installation of the relevant drivers went smoothly and the devices were ready to use within a short while. In this post, I'm writing down the steps I followed to get my RTL-SDR dongle and HackRF device up and running on a Windows 10 machine. Here we go.
 
Instructions for RTL-SDR:
 
(1) Connected RTL-SDR dongle to the USB port and Windows automatically detected the device and installed some drivers. But, we need to manually install a special driver called ExtIO.

(2) Download the Zadig USB driver installer from here: http://zadig.akeo.ie/
No installation necessary. It can be run immediately.

(3) Run Zadig executable. With all the default settings, click "Install Driver" to install the WinUSB driver.

Zadig tool is used to install WinUSB driver


(4) Download and install HDSDR tool. Even though we install it, do not attempt to use RTL-SDR with HDSDR software yet.
http://hdsdr.de/download/HDSDR_install.exe

(5) Download the ExtIO driver DLL for RTL-SDR from here.
http://hdsdr.de/download/ExtIO/ExtIO_RTL2832.dll

(6) Copy the ExtIO driver DLL file to the installation directory of our HDSDR software which we installed a short while ago. In my system, this directory is,
C:\Program Files (x86)\HDSDR

(7) Now, start HDSDR. In my system, HDSDR automatically picked the RTL-SDR dongle as the input and sound card as the output and started picking signals. That means everything is working.
 
Instructions for HackRF:
 
(1) Connect the HackRF to the USB port and windows automatically detected it and installed some drivers.

(2) Download the Zadig USB driver installer from here: http://zadig.akeo.ie/
No installation necessary. It can be run immediately.

(3) Run Zadig executable. From the options menu, select "List All Devices". Then from the drop-down list, select "HackRF One".

(4) Since I have already installed the WINUSB driver for RTL-SDR, I don't have to do anything here. It shows that the driver is the latest already. In case you don't have that option, go ahead and click "Install Driver" to install the WinUSB driver.

(5) Download and install HDSDR tool. Even though we install it, do not attempt to use HackRF with HDSDR software yet.
http://hdsdr.de/download/HDSDR_install.exe

(6) Download the ExtIO driver DLL for HackRF from here.
https://github.com/jocover/ExtIO_HackRF/releases

(7) Copy the ExtIO driver DLL file to the installation directory of our HDSDR software which we have installed. In my system, this directory is,
C:\Program Files (x86)\HDSDR

(8) Now, start HDSDR. In my system, HDSDR automatically prompted asking to select which DLL to be used, either RTL-SDR or HackRF. Select the DLL file for HackRF and it starts picking signals. That means everything is working.
 
 

Error handling

 

hackrf_info output:

hackrf_info version: 2017.02.1
hackrf_info symbol lookup error: hackrf_info: undefined symbol: hackrf_library_release
 
@dominicgs
 
Contributor

dominicgs commented on Oct 21, 2017

It looks like you have both the latest installed version and the package from Raspian installed. Try running sudo apt-get remove --purge libhackrf0 hackrf?

@nickspurry
 
Author

nickspurry commented on Oct 21, 2017

This appears to have fixed the issue. I had previously removed both but without the --purge flag. Thanks for responding so quickly. On a side note, how would one go about updating the package in Raspbian and possibly other platforms? It seems terribly out of date.

 
Template Design © Joomla Templates | GavickPro. All rights reserved.