Skip to content

Commit

Permalink
v1.4 Multiple new features
Browse files Browse the repository at this point in the history
Persistent display
Frequency allocation bands
More settings in UI
Redesigned the way UI works
  • Loading branch information
pavsa committed Feb 20, 2018
1 parent f99349b commit fe535cd
Show file tree
Hide file tree
Showing 47 changed files with 6,136 additions and 3,685 deletions.
5 changes: 3 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
- Optimized for only one purpose - to use HackRF as a spectrum analyzer
- All changes in settings restart hackrf_sweep automatically
- Easy retuning
- hackrf_sweep integrated as a shared library
- Peak display
- Peak / Persistent display
- Frequency allocation bands for EU
- High resolution waterfall plot
- Spur filter - removes spur artifacts from the spectrum
- hackrf_sweep integrated as a shared library

### Why?
Other software is limited or hard to use
Expand Down
Binary file modified release/hackrf_spectrum_analyzer.zip
Binary file not shown.
Binary file modified screenshot.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/hackrf-sweep/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk_x64"/>
<classpathentry kind="lib" path="miglayout15-swing.jar" sourcepath="miglayout-src.zip"/>
<classpathentry kind="lib" path="lib/jcommon-1.0.17.jar"/>
<classpathentry kind="lib" path="lib/jfreechart-1.0.14.jar"/>
<classpathentry kind="lib" path="lib/jfreechart-1.0.14.jar" />
<classpathentry kind="lib" path="lib/hackrf-sweep-jna.jar"/>
<classpathentry kind="lib" path="lib/jna/jna-min-4.3.0.jar" sourcepath="lib/jna/src-4.3.0.zip"/>
<classpathentry kind="output" path="bin"/>
Expand Down
2 changes: 2 additions & 0 deletions src/hackrf-sweep/.depend
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hackrf_sweep.o: lib/hackrf/host/hackrf-tools/src/hackrf_sweep.c \
lib/hackrf/host/hackrf-tools/src/hackrf_sweep.h
3 changes: 2 additions & 1 deletion src/hackrf-sweep/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/bin
/build
/obj
/res
/res
**.jrf
37 changes: 20 additions & 17 deletions src/hackrf-sweep/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ BUILD_PATH = obj
#where the resulting release zip will be copied
RELEASE_DIR = ../../release/

JNA_LIB = lib/hackrf-sweep-jna.jar
JNA_SWEEP_HEADER = $(CURDIR)/lib/hackrf/host/hackrf-tools/src/hackrf_sweep.h
LIBUSB_DIR = lib/libusb-1.0.21
MAIN_JAR = build/lib/hackrf_sweep_spectrum_analyzer.jar


ARCH_DEFINED = n
ifeq ($(ARCH), x86-64)
ARCH_DEFINED = y
Expand All @@ -18,7 +24,6 @@ IS_64BIT = n
endif



#SOURCES = \
# lib/hackrf-2017.02.1/host/libhackrf/src/hackrf.c \
# lib/hackrf-2017.02.1/host/hackrf-tools/src/hackrf_sweep.c
Expand All @@ -27,7 +32,7 @@ SOURCES = \
lib/hackrf/host/libhackrf/src/hackrf.c \
lib/hackrf/host/hackrf-tools/src/hackrf_sweep.c

INCLUDE_PATHS = -Ilib/hackrf/host/libhackrf/src -Ilib/libusb-1.0.20/include/libusb-1.0
INCLUDE_PATHS = -Ilib/hackrf/host/libhackrf/src -I$(LIBUSB_DIR)/include/libusb-1.0


#-Ilib/hackrf-2017.02.1/host/libhackrf/src
Expand Down Expand Up @@ -57,10 +62,10 @@ CC = gcc
CXX = g++

ifeq ($(IS_64BIT), y)
LDPATHS = -L"lib/fftw-3.3.5-dll64" -L"lib/libusb-1.0.20/MinGW64/dll"
LDPATHS = -L"lib/fftw-3.3.5-dll64" -L"$(LIBUSB_DIR)/MinGW64/dll"
INCLUDE_PATHS += -Ilib/fftw-3.3.5-dll64
else
LDPATHS = -L"lib/fftw-3.3.5-dll32" -L"lib/libusb-1.0.20/MinGW32/dll"
LDPATHS = -L"lib/fftw-3.3.5-dll32" -L"$(LIBUSB_DIR)/MinGW32/dll"
INCLUDE_PATHS += -Ilib/fftw-3.3.5-dll32
endif

Expand All @@ -78,27 +83,25 @@ endif
#paths

#path to build dlls
OUTPUT_DIR = build/lib/$(LIB_DIR)
OUTPUT_DLL_DIR = build/lib/$(LIB_DIR)

JNA_LIB = lib/hackrf-sweep-jna.jar
JNA_SWEEP_HEADER = $(CURDIR)/lib/hackrf/host/hackrf-tools/src/hackrf_sweep.h


DLL_LIB_PTHREAD = lib/$(LIB_DIR)/libwinpthread-1.dll
DLL_JNA = lib/$(LIB_DIR)/jnidispatch.dll
DLL_LIB = $(OUTPUT_DIR)/hackrf-sweep.dll
DLL_LIB = $(OUTPUT_DLL_DIR)/hackrf-sweep.dll

ifeq ($(IS_64BIT), y)
DLL_LIB_FFTW = lib/fftw-3.3.5-dll64/libfftw3f-3.dll
DLL_LIB_USB = lib/libusb-1.0.20/MinGW64/dll/libusb-1.0.dll
DLL_LIB_USB = $(LIBUSB_DIR)/MinGW64/dll/libusb-1.0.dll
else
DLL_LIB_FFTW = lib/fftw-3.3.5-dll32/libfftw3f-3.dll
DLL_LIB_USB = lib/libusb-1.0.20/MinGW32/dll/libusb-1.0.dll
DLL_LIB_USB = $(LIBUSB_DIR)/MinGW32/dll/libusb-1.0.dll
endif

JNAERATOR = $(CURDIR)/lib/jnaerator/jnaerator-0.13-20150328.111636-4-shaded.jar
ZIP_FILE = hackrf_spectrum_analyzer.zip
ZIP_FILE_PATH = $(OUTPUT_DIR)/../../$(ZIP_FILE)
ZIP_FILE_PATH = $(OUTPUT_DLL_DIR)/../../$(ZIP_FILE)


.NOTPARALLEL: all
Expand All @@ -122,16 +125,16 @@ dirs:

$(ZIP_FILE_PATH): $(DLL_LIB)
mkdir -p $(RELEASE_DIR)
cd $(OUTPUT_DIR)/../../ && rm -rf $(ZIP_FILE) && zip -r $(ZIP_FILE) *
cd $(OUTPUT_DLL_DIR)/../../ && rm -rf $(ZIP_FILE) && zip -r $(ZIP_FILE) *
yes | cp -rf $(ZIP_FILE_PATH) $(RELEASE_DIR)
#cd $(CURDIR)


.PHONY: prepare
prepare: dirs $(OBJECTS) $(DLL_LIB_FFTW)
mkdir -p $(OUTPUT_DIR)
cp -f $(DLL_LIB_FFTW) $(DLL_LIB_PTHREAD) $(DLL_JNA) $(DLL_LIB_USB) $(OUTPUT_DIR)
cp -f lib/zadig_2.2.exe lib/program.ico lib/program.png $(OUTPUT_DIR)/../
mkdir -p $(OUTPUT_DLL_DIR)
cp -f $(DLL_LIB_FFTW) $(DLL_LIB_PTHREAD) $(DLL_JNA) $(DLL_LIB_USB) $(OUTPUT_DLL_DIR)
cp -f lib/zadig_2.2.exe lib/program.ico lib/program.png $(OUTPUT_DLL_DIR)/../

$(DLL_LIB): $(OBJECTS) $(JNA_LIB)
echo "building " $(DLL_LIB)
Expand All @@ -153,6 +156,6 @@ $(BUILD_PATH)/%.c.$(OBJECT_SUFFIX): %.c

.PHONY: clean
clean:
rm -f $(OBJECTS) $(DLL_LIB) #$(JNA_LIB)
rm -rf $(OUTPUT_DIR) $(BUILD_PATH)
rm -f $(MAIN_JAR) $(OBJECTS) $(DLL_LIB) #$(JNA_LIB)
rm -rf $(OUTPUT_DLL_DIR) $(BUILD_PATH)

Binary file not shown.
Binary file not shown.
Binary file not shown.
168 changes: 0 additions & 168 deletions src/hackrf-sweep/lib/libusb-1.0.20/libusb-1.0.def

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit fe535cd

Please sign in to comment.