signalwareltd / rtl_tcp_andro-

rtl_tcp and libusb-1.0 port for Android modified to support opening devices from Linux file descriptors
GNU General Public License v2.0
339 stars 119 forks source link

Using HackRF amplifier #26

Open Matioupi opened 5 years ago

Matioupi commented 5 years ago

Hello, i'm trying to use at same spot, dump1090 works fine on my computer).

My guess is that the internal hackRF amplifier should be activated, but I can't figure out how to do it from android, would it be possible to have a "config file mode" to force some hackrf settings not handled by sdrTcpArguments ?

regards

Matioupi commented 5 years ago

Justfor the follow-up, I've been recompiling your app by adding hackrf.setAmp(true); in HackRfTcp.java executCommand method

With this mod, ADSB Flight Tracker app works much better, which seems to confirm my previous thought (but the hack is quite dirty...) Having logics to control the various gain stages of the hackRF from the GUI would be better.

Enthusiastic-Coder commented 5 years ago

Hi Matioupi,

i think i pass 3 parameters ; port no, auto gain and frequency via Android intent. Are you asking for a 4th? "hackrf.setAmp(true);"

Matioupi commented 5 years ago

Right, the hackrf has an internal amplifier that can be enabled or not, and my guess is that supporting hackrf would also need supporting the various hackRF gain stages through the passed arguments. If you could add this, that would be really great ! (and also make persistent the default settings by the user). By the way, this is a very helpfull piece of software !