kpreid / shinysdr

Software-defined radio receiver application built on GNU Radio with a web-based UI and plugins. In development, usable but incomplete. Compatible with RTL-SDR.
https://shinysdr.switchb.org/
GNU General Public License v3.0
1.07k stars 115 forks source link

enable antenna port power... #150

Closed mathisono closed 3 years ago

mathisono commented 3 years ago

I'm wondering where I might place the -p 1 argument for the hackRF to activate power on its antenna port for a preAmp?

kpreid commented 3 years ago

Options like that are parameters to the osmosdr device string, but not spelled the same way as the hackrf command line tools. My config file for HackRF with power looks like:

config.sources.add('hackrf', OsmoSDRDevice('hackrf=,bias=1', sample_rate=20e6, correction_ppm=19))

(Note the comma, and no space.)

This and other options are documented at the gr-osmosdr wiki, and the final word of course is the source code, gr-osmosdr/lib/hackrf/hackrf_source_c.cc.

mathisono commented 3 years ago

config.devices.add(u'osmo1', OsmoSDRDevice('hackrf=4f4397,bias=1', name='hackrf--(APN-450)'),PositionedDevice(xyz, xyz))

Interesting that you apply your ppm there! my SDR farm is at a remote site temperature really plays a big part in my ppm drift so much so I've started putting fans on the RTL v3, they get really HOT!!!

kpreid commented 3 years ago

I assume you've got the bias power working!

mathisono commented 3 years ago

yes thanks !