Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatible UHD version with TempestSDR #20

Open
janemba opened this issue Nov 18, 2018 · 1 comment
Open

compatible UHD version with TempestSDR #20

janemba opened this issue Nov 18, 2018 · 1 comment

Comments

@janemba
Copy link

janemba commented Nov 18, 2018

Hello,

Which UHD version can I use with TempestSDR. The latest one is not compatible.

Thx

@solsticedhiver
Copy link

I was able to compile TempestSDR on ubuntu 18.10 with the following patch:

diff --git a/JavaGUI/jni/makefile b/JavaGUI/jni/makefile
index 880f38b..49da336 100644
--- a/JavaGUI/jni/makefile
+++ b/JavaGUI/jni/makefile
@@ -136,7 +136,9 @@ $(OBJFOLDER)/%.o : %.c $(DEPS)
 
 # Generate the java header based on the class
 TSDRLibraryNDK.h : ../bin/martin/tempest/core/TSDRLibrary.class 
-	javah -classpath ../bin -o TSDRLibraryNDK.h -jni martin.tempest.core.TSDRLibrary
+	#javah -classpath ../bin -o TSDRLibraryNDK.h -jni martin.tempest.core.TSDRLibrary
+	javac -classpath ../bin ../src/martin/tempest/core/TSDRLibrary.java -h .
+	mv martin_tempest_core_TSDRLibrary.h TSDRLibraryNDK.h
 
 # If the class is not compiled, do it
 ../bin/martin/tempest/core/TSDRLibrary.class  : ../src/martin/tempest/core/TSDRLibrary.java
diff --git a/Release/JavaGUI/JTempestSDR.jar b/Release/JavaGUI/JTempestSDR.jar
index 24917bb..03293d0 100644
Binary files a/Release/JavaGUI/JTempestSDR.jar and b/Release/JavaGUI/JTempestSDR.jar differ
diff --git a/TSDRPlugin_UHD/src/TSDRPlugin_UHD.cpp b/TSDRPlugin_UHD/src/TSDRPlugin_UHD.cpp
index eb231ad..05618c6 100644
--- a/TSDRPlugin_UHD/src/TSDRPlugin_UHD.cpp
+++ b/TSDRPlugin_UHD/src/TSDRPlugin_UHD.cpp
@@ -14,7 +14,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include <uhd/utils/thread_priority.hpp>
+#include <uhd/utils/thread.hpp>
 #include <uhd/utils/safe_main.hpp>
 #include <uhd/usrp/multi_usrp.hpp>
 #include <uhd/transport/udp_simple.hpp>
@@ -332,7 +332,7 @@ EXTERNC TSDRPLUGIN_API int __stdcall tsdrplugin_readasync(tsdrplugin_readasync_f
 		// flush usrpbuffer
 	    while(rx_stream->recv(
 	        buff, samples_per_api_read, md,
-	        uhd::device::RECV_MODE_ONE_PACKET
+	        true
 	    )){
 	        /* NOP */
 	    };

But not to run it. Start is still grayed out. I don't know why ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants