new fixes

This commit is contained in:
Ryzerth 2020-10-20 00:32:17 +02:00
parent 027054b57e
commit 6e5450ed24
19 changed files with 298 additions and 96 deletions

View File

@ -63,6 +63,7 @@ void ConfigManager::release(bool changed) {
void ConfigManager::autoSaveWorker(ConfigManager* _this) { void ConfigManager::autoSaveWorker(ConfigManager* _this) {
while (_this->autoSaveEnabled) { while (_this->autoSaveEnabled) {
if (!_this->mtx.try_lock()) { if (!_this->mtx.try_lock()) {
spdlog::warn("ConfigManager locked, waiting...");
std::this_thread::sleep_for(std::chrono::milliseconds(1000)); std::this_thread::sleep_for(std::chrono::milliseconds(1000));
continue; continue;
} }

View File

@ -119,4 +119,61 @@ namespace dsp {
} }
}; };
class Squelch : public Block<Squelch, complex_t, complex_t, 1, 1> {
public:
Squelch() : Block({1}, {1}, this, worker) {}
void init(stream<complex_t>* input, int blockSize) {
in[0] = input;
inputBlockSize[0] = blockSize;
out[0]->setMaxLatency(blockSize * 2);
outputBlockSize[0] = blockSize;
level = -50.0f;
}
float level;
int onCount;
int offCount;
private:
static void worker(Squelch* _this) {
int blockSize = _this->inputBlockSize[0];
stream<complex_t>* in = _this->in[0];
stream<complex_t>* out = _this->out[0];
complex_t* buf = new complex_t[blockSize];
int _on = 0, _off = 0;
bool active = false;
while (true) {
if (in->read(buf, blockSize) < 0) { break; };
for (int i = 0; i < blockSize; i++) {
if (log10(sqrt((buf[i].i*buf[i].i) + (buf[i].q*buf[i].q))) * 10.0f > _this->level) {
_on++;
_off = 0;
}
else {
_on = 0;
_off++;
}
if (_on >= _this->onCount && !active) {
_on = _this->onCount;
active = true;
}
if (_off >= _this->offCount && active) {
_off = _this->offCount;
active = false;
}
if (!active) {
buf[i].i = 0.0f;
buf[i].q = 0.0f;
}
}
if (out->write(buf, blockSize) < 0) { break; };
}
delete[] buf;
}
};
}; };

View File

@ -63,26 +63,95 @@ namespace dsp {
bool bypass; bool bypass;
private: private:
// static void _worker(DCBiasRemover* _this) {
// complex_t* buf = new complex_t[_this->_bufferSize];
// float ibias = 0.0f;
// float qbias = 0.0f;
// while (true) {
// if (_this->_in->read(buf, _this->_bufferSize) < 0) { break; };
// if (_this->bypass) {
// if (_this->output.write(buf, _this->_bufferSize) < 0) { break; };
// continue;
// }
// for (int i = 0; i < _this->_bufferSize; i++) {
// ibias += buf[i].i;
// qbias += buf[i].q;
// }
// ibias /= _this->_bufferSize;
// qbias /= _this->_bufferSize;
// for (int i = 0; i < _this->_bufferSize; i++) {
// buf[i].i -= ibias;
// buf[i].q -= qbias;
// }
// if (_this->output.write(buf, _this->_bufferSize) < 0) { break; };
// }
// delete[] buf;
// }
static void _worker(DCBiasRemover* _this) { static void _worker(DCBiasRemover* _this) {
complex_t* buf = new complex_t[_this->_bufferSize]; complex_t* buf = new complex_t[_this->_bufferSize];
complex_t* mixBuf = new complex_t[_this->_bufferSize];
float currentPhase = 0.0f;
float lastPhase = 0.0f;
double phase = 0.0f;
while (true) {
float ibias = 0.0f; float ibias = 0.0f;
float qbias = 0.0f; float qbias = 0.0f;
while (true) {
if (_this->_in->read(buf, _this->_bufferSize) < 0) { break; }; if (_this->_in->read(buf, _this->_bufferSize) < 0) { break; };
if (_this->bypass) { if (_this->bypass) {
if (_this->output.write(buf, _this->_bufferSize) < 0) { break; }; if (_this->output.write(buf, _this->_bufferSize) < 0) { break; };
continue; continue;
} }
// Detect the frequency of the signal
double avgDiff = 0.0f;
// for (int i = 0; i < _this->_bufferSize; i++) {
// currentPhase = fast_arctan2(buf[i].i, buf[i].q);
// float diff = currentPhase - lastPhase;
// if (diff > 3.1415926535f) { diff -= 2 * 3.1415926535f; }
// else if (diff <= -3.1415926535f) { diff += 2 * 3.1415926535f; }
// avgDiff += diff;
// lastPhase = currentPhase;
// }
// avgDiff /= (double)_this->_bufferSize;
// avgDiff /= (double)_this->_bufferSize;
// Average the samples to "filter" the signal to the block frequency
for (int i = 0; i < _this->_bufferSize; i++) { for (int i = 0; i < _this->_bufferSize; i++) {
ibias += buf[i].i; ibias += buf[i].i;
qbias += buf[i].q; qbias += buf[i].q;
} }
ibias /= _this->_bufferSize; ibias /= _this->_bufferSize;
qbias /= _this->_bufferSize; qbias /= _this->_bufferSize;
// Get the phase difference from the last block
currentPhase = fast_arctan2(ibias, qbias);
float diff = currentPhase - lastPhase;
if (diff > 3.1415926535f) { diff -= 2 * 3.1415926535f; }
else if (diff <= -3.1415926535f) { diff += 2 * 3.1415926535f; }
avgDiff += diff;
lastPhase = currentPhase;
avgDiff /= (double)_this->_bufferSize;
// Generate a correction signal using the phase difference
for (int i = 0; i < _this->_bufferSize; i++) { for (int i = 0; i < _this->_bufferSize; i++) {
buf[i].i -= ibias; mixBuf[i].i = sin(phase);
buf[i].q -= qbias; mixBuf[i].q = cos(phase);
phase -= avgDiff;
phase = fmodl(phase, 2.0 * 3.1415926535);
} }
// Mix the correction signal with the original signal to shift the unwanted signal
// to the center. Also, null out the real component so that symetric
// frequencies are removed (at least I hope...)
float tq;
for (int i = 0; i < _this->_bufferSize; i++) {
buf[i].i = ((mixBuf[i].i * buf[i].q) + (mixBuf[i].q * buf[i].i)) * 1.4142;
buf[i].q = 0;
}
if (_this->output.write(buf, _this->_bufferSize) < 0) { break; }; if (_this->output.write(buf, _this->_bufferSize) < 0) { break; };
} }
delete[] buf; delete[] buf;

View File

@ -92,6 +92,10 @@ void windowInit() {
credits::init(); credits::init();
core::configManager.aquire();
gui::menu.order = core::configManager.conf["menuOrder"].get<std::vector<std::string>>();
core::configManager.release();
gui::menu.registerEntry("Source", sourecmenu::draw, NULL); gui::menu.registerEntry("Source", sourecmenu::draw, NULL);
gui::menu.registerEntry("Audio", audiomenu::draw, NULL); gui::menu.registerEntry("Audio", audiomenu::draw, NULL);
gui::menu.registerEntry("Scripting", scriptingmenu::draw, NULL); gui::menu.registerEntry("Scripting", scriptingmenu::draw, NULL);
@ -117,7 +121,6 @@ void windowInit() {
displaymenu::init(); displaymenu::init();
// Load last source configuration // Load last source configuration
// Also add a loading screen // Also add a loading screen
// Adjustable "snap to grid" for each VFO // Adjustable "snap to grid" for each VFO
// Finish the recorder module // Finish the recorder module
@ -129,10 +132,9 @@ void windowInit() {
// Do VFO in two steps: First sample rate conversion, then filtering // Do VFO in two steps: First sample rate conversion, then filtering
// And a module add/remove/change order menu // And a module add/remove/change order menu
// get rid of watchers and use if() instead
// Switch to double for all frequecies and bandwidth
// Update UI settings // Update UI settings
core::configManager.aquire();
fftMin = core::configManager.conf["min"]; fftMin = core::configManager.conf["min"];
fftMax = core::configManager.conf["max"]; fftMax = core::configManager.conf["max"];
gui::waterfall.setFFTMin(fftMin); gui::waterfall.setFFTMin(fftMin);
@ -159,8 +161,6 @@ void windowInit() {
fftHeight = core::configManager.conf["fftHeight"]; fftHeight = core::configManager.conf["fftHeight"];
gui::waterfall.setFFTHeight(fftHeight); gui::waterfall.setFFTHeight(fftHeight);
gui::menu.order = core::configManager.conf["menuOrder"].get<std::vector<std::string>>();
core::configManager.release(); core::configManager.release();
} }
@ -297,10 +297,6 @@ void drawWindow() {
core::configManager.release(true); core::configManager.release(true);
} }
if (dcbias.changed()) {
sigpath::signalPath.setDCBiasCorrection(dcbias.val);
}
int _fftHeight = gui::waterfall.getFFTHeight(); int _fftHeight = gui::waterfall.getFFTHeight();
if (fftHeight != _fftHeight) { if (fftHeight != _fftHeight) {
fftHeight = _fftHeight; fftHeight = _fftHeight;
@ -418,6 +414,9 @@ void drawWindow() {
ImGui::Text("Framerate: %.1f FPS", ImGui::GetIO().Framerate); ImGui::Text("Framerate: %.1f FPS", ImGui::GetIO().Framerate);
ImGui::Text("Center Frequency: %.0 Hz", gui::waterfall.getCenterFrequency()); ImGui::Text("Center Frequency: %.0 Hz", gui::waterfall.getCenterFrequency());
ImGui::Text("Source name: %s", sourceName.c_str()); ImGui::Text("Source name: %s", sourceName.c_str());
if (ImGui::Checkbox("Test technique", &dcbias.val)) {
sigpath::signalPath.setDCBiasCorrection(dcbias.val);
}
ImGui::Spacing(); ImGui::Spacing();
} }

View File

@ -229,7 +229,8 @@ namespace ImGui {
} }
int refCenter = mousePos.x - (widgetPos.x + 50); int refCenter = mousePos.x - (widgetPos.x + 50);
if (refCenter >= 0 && refCenter < dataWidth && mousePos.y > widgetPos.y && mousePos.y < (widgetPos.y + widgetSize.y)) { if (refCenter >= 0 && refCenter < dataWidth && mousePos.y > widgetPos.y && mousePos.y < (widgetPos.y + widgetSize.y)) {
vfo->setOffset(((((double)refCenter / ((double)dataWidth / 2.0)) - 1.0) * (viewBandwidth / 2.0)) + viewOffset); double off = ((((double)refCenter / ((double)dataWidth / 2.0)) - 1.0) * (viewBandwidth / 2.0)) + viewOffset;
vfo->setOffset(round(off / vfo->snapInterval) * vfo->snapInterval);
} }
} }

View File

@ -32,7 +32,7 @@ public:
handler.stream = &stream; handler.stream = &stream;
sigpath::sourceManager.registerSource("File", &handler); sigpath::sourceManager.registerSource("File", &handler);
reader = new WavReader("D:/satpic/raw_recordings/NOAA-18_09-08-2018_21-39-00_baseband_NR.wav"); reader = new WavReader("D:/Downloads/20120416_glv_594_2.wav");
spdlog::info("Samplerate: {0}, Bit depth: {1}, Channel count: {2}", reader->getSampleRate(), reader->getBitDepth(), reader->getChannelCount()); spdlog::info("Samplerate: {0}, Bit depth: {1}, Channel count: {2}", reader->getSampleRate(), reader->getBitDepth(), reader->getChannelCount());

View File

@ -1,4 +1,6 @@
echo OFF echo OFF
copy /b/v/y build\Release\* root\ copy /b/v/y build\Release\* root\
copy /b/v/y build\modules\radio\Release\radio.dll root\modules\radio.dll copy /b/v/y build\radio\Release\radio.dll root\modules\radio.dll
copy /b/v/y build\modules\recorder\Release\recorder.dll root\modules\recorder.dll copy /b/v/y build\recorder\Release\recorder.dll root\modules\recorder.dll
copy /b/v/y build\rtl_tcp_source\Release\rtl_tcp_source.dll root\modules\rtl_tcp_source.dll
copy /b/v/y build\soapy\Release\soapy.dll root\modules\soapy.dll

View File

@ -66,7 +66,7 @@ private:
if (ImGui::RadioButton(CONCAT("AM##_", _this->name), _this->demod == 2) && _this->demod != 2) { if (ImGui::RadioButton(CONCAT("AM##_", _this->name), _this->demod == 2) && _this->demod != 2) {
_this->demod = 2; _this->demod = 2;
_this->bandWidth = 12500; _this->bandWidth = 12500;
_this->bandWidthMin = 6250; _this->bandWidthMin = 1500;
_this->bandWidthMax = 12500; _this->bandWidthMax = 12500;
_this->sigPath.setDemodulator(SigPath::DEMOD_AM, _this->bandWidth); _this->sigPath.setDemodulator(SigPath::DEMOD_AM, _this->bandWidth);
} }
@ -120,6 +120,9 @@ private:
_this->bandWidth = std::clamp<int>(_this->bandWidth, _this->bandWidthMin, _this->bandWidthMax); _this->bandWidth = std::clamp<int>(_this->bandWidth, _this->bandWidthMin, _this->bandWidthMax);
_this->sigPath.setBandwidth(_this->bandWidth); _this->sigPath.setBandwidth(_this->bandWidth);
} }
ImGui::SliderFloat(CONCAT("##_squelch_select_", _this->name), &_this->sigPath.squelch.level, -100, 0);
ImGui::PopItemWidth(); ImGui::PopItemWidth();
} }

View File

@ -5,7 +5,7 @@ SigPath::SigPath() {
} }
int SigPath::sampleRateChangeHandler(void* ctx, float sampleRate) { int SigPath::sampleRateChangeHandler(void* ctx, double sampleRate) {
SigPath* _this = (SigPath*)ctx; SigPath* _this = (SigPath*)ctx;
_this->outputSampleRate = sampleRate; _this->outputSampleRate = sampleRate;
_this->audioResamp.stop(); _this->audioResamp.stop();
@ -29,15 +29,21 @@ void SigPath::init(std::string vfoName, uint64_t sampleRate, int blockSize) {
_demod = DEMOD_FM; _demod = DEMOD_FM;
_deemp = DEEMP_50US; _deemp = DEEMP_50US;
bandwidth = 200000; bandwidth = 200000;
demodOutputSamplerate = 200000;
// TODO: Set default VFO options // TODO: Set default VFO options
// TODO: ajust deemphasis for different output sample rates // TODO: ajust deemphasis for different output sample rates
// TODO: Add a mono to stereo for different modes // TODO: Add a mono to stereo for different modes
demod.init(vfo->output, 100000, 200000, 800); squelch.init(vfo->output, 800);
amDemod.init(vfo->output, 50); squelch.level = 40;
ssbDemod.init(vfo->output, 6000, 3000, 22); squelch.onCount = 1;
cpx2stereo.init(vfo->output, 22); squelch.offCount = 2560;
demod.init(squelch.out[0], 100000, 200000, 800);
amDemod.init(squelch.out[0], 50);
ssbDemod.init(squelch.out[0], 6000, 3000, 22);
cpx2stereo.init(squelch.out[0], 22);
audioResamp.init(&demod.output, 200000, 48000, 800); audioResamp.init(&demod.output, 200000, 48000, 800);
deemp.init(&audioResamp.output, 800, 50e-6, 48000); deemp.init(&audioResamp.output, 800, 50e-6, 48000);
@ -92,9 +98,12 @@ void SigPath::setDemodulator(int demId, float bandWidth) {
} }
_demod = demId; _demod = demId;
squelch.stop();
// Set input of the audio resampler // Set input of the audio resampler
// TODO: Set bandwidth from argument // TODO: Set bandwidth from argument
if (demId == DEMOD_FM) { if (demId == DEMOD_FM) {
demodOutputSamplerate = 200000;
vfo->setSampleRate(200000, bandwidth); vfo->setSampleRate(200000, bandwidth);
demod.setBlockSize(vfo->getOutputBlockSize()); demod.setBlockSize(vfo->getOutputBlockSize());
demod.setSampleRate(200000); demod.setSampleRate(200000);
@ -107,6 +116,7 @@ void SigPath::setDemodulator(int demId, float bandWidth) {
demod.start(); demod.start();
} }
else if (demId == DEMOD_NFM) { else if (demId == DEMOD_NFM) {
demodOutputSamplerate = 16000;
vfo->setSampleRate(16000, bandwidth); vfo->setSampleRate(16000, bandwidth);
demod.setBlockSize(vfo->getOutputBlockSize()); demod.setBlockSize(vfo->getOutputBlockSize());
demod.setSampleRate(16000); demod.setSampleRate(16000);
@ -119,6 +129,7 @@ void SigPath::setDemodulator(int demId, float bandWidth) {
demod.start(); demod.start();
} }
else if (demId == DEMOD_AM) { else if (demId == DEMOD_AM) {
demodOutputSamplerate = 125000;
vfo->setSampleRate(12500, bandwidth); vfo->setSampleRate(12500, bandwidth);
amDemod.setBlockSize(vfo->getOutputBlockSize()); amDemod.setBlockSize(vfo->getOutputBlockSize());
audioResamp.setInput(&amDemod.output); audioResamp.setInput(&amDemod.output);
@ -129,6 +140,7 @@ void SigPath::setDemodulator(int demId, float bandWidth) {
amDemod.start(); amDemod.start();
} }
else if (demId == DEMOD_USB) { else if (demId == DEMOD_USB) {
demodOutputSamplerate = 6000;
vfo->setSampleRate(6000, bandwidth); vfo->setSampleRate(6000, bandwidth);
ssbDemod.setBlockSize(vfo->getOutputBlockSize()); ssbDemod.setBlockSize(vfo->getOutputBlockSize());
ssbDemod.setMode(dsp::SSBDemod::MODE_USB); ssbDemod.setMode(dsp::SSBDemod::MODE_USB);
@ -140,6 +152,7 @@ void SigPath::setDemodulator(int demId, float bandWidth) {
ssbDemod.start(); ssbDemod.start();
} }
else if (demId == DEMOD_LSB) { else if (demId == DEMOD_LSB) {
demodOutputSamplerate = 6000;
vfo->setSampleRate(6000, bandwidth); vfo->setSampleRate(6000, bandwidth);
ssbDemod.setBlockSize(vfo->getOutputBlockSize()); ssbDemod.setBlockSize(vfo->getOutputBlockSize());
ssbDemod.setMode(dsp::SSBDemod::MODE_LSB); ssbDemod.setMode(dsp::SSBDemod::MODE_LSB);
@ -151,6 +164,7 @@ void SigPath::setDemodulator(int demId, float bandWidth) {
ssbDemod.start(); ssbDemod.start();
} }
else if (demId == DEMOD_DSB) { else if (demId == DEMOD_DSB) {
demodOutputSamplerate = 6000;
vfo->setSampleRate(6000, bandwidth); vfo->setSampleRate(6000, bandwidth);
ssbDemod.setBlockSize(vfo->getOutputBlockSize()); ssbDemod.setBlockSize(vfo->getOutputBlockSize());
ssbDemod.setMode(dsp::SSBDemod::MODE_DSB); ssbDemod.setMode(dsp::SSBDemod::MODE_DSB);
@ -162,6 +176,7 @@ void SigPath::setDemodulator(int demId, float bandWidth) {
ssbDemod.start(); ssbDemod.start();
} }
else if (demId == DEMOD_RAW) { else if (demId == DEMOD_RAW) {
demodOutputSamplerate = 10000;
vfo->setSampleRate(10000, bandwidth); vfo->setSampleRate(10000, bandwidth);
cpx2stereo.setBlockSize(vfo->getOutputBlockSize()); cpx2stereo.setBlockSize(vfo->getOutputBlockSize());
//audioResamp.setInput(&cpx2stereo.output); //audioResamp.setInput(&cpx2stereo.output);
@ -174,6 +189,9 @@ void SigPath::setDemodulator(int demId, float bandWidth) {
spdlog::error("UNIMPLEMENTED DEMODULATOR IN SigPath::setDemodulator (start): {0}", demId); spdlog::error("UNIMPLEMENTED DEMODULATOR IN SigPath::setDemodulator (start): {0}", demId);
} }
squelch.setBlockSize(vfo->getOutputBlockSize());
squelch.start();
deemp.setBlockSize(audioResamp.getOutputBlockSize()); deemp.setBlockSize(audioResamp.getOutputBlockSize());
audioResamp.start(); audioResamp.start();
@ -242,12 +260,15 @@ void SigPath::setBandwidth(float bandWidth) {
if (audioBw != _audioBw) { if (audioBw != _audioBw) {
audioBw = _audioBw; audioBw = _audioBw;
audioResamp.stop(); audioResamp.stop();
audioResamp.setInputSampleRate(6000, vfo->getOutputBlockSize(), audioBw, audioBw); audioResamp.setFilterParams(audioBw, audioBw);
audioResamp.setBlockSize(vfo->getOutputBlockSize());
//audioResamp.setInputSampleRate(demodOutputSamplerate, vfo->getOutputBlockSize(), audioBw, audioBw);
audioResamp.start(); audioResamp.start();
} }
} }
void SigPath::start() { void SigPath::start() {
squelch.start();
demod.start(); demod.start();
audioResamp.start(); audioResamp.start();
deemp.start(); deemp.start();

View File

@ -8,6 +8,7 @@
#include <dsp/sink.h> #include <dsp/sink.h>
#include <dsp/correction.h> #include <dsp/correction.h>
#include <dsp/vfo.h> #include <dsp/vfo.h>
#include <dsp/block.h>
#include <io/audio.h> #include <io/audio.h>
#include <module.h> #include <module.h>
#include <signal_path/signal_path.h> #include <signal_path/signal_path.h>
@ -44,14 +45,17 @@ public:
dsp::FMDeemphasis deemp; dsp::FMDeemphasis deemp;
dsp::Squelch squelch;
private: private:
static int sampleRateChangeHandler(void* ctx, float sampleRate); static int sampleRateChangeHandler(void* ctx, double sampleRate);
VFOManager::VFO* vfo; VFOManager::VFO* vfo;
dsp::stream<dsp::complex_t> input; dsp::stream<dsp::complex_t> input;
// Demodulators // Demodulators
dsp::FMDemodulator demod; dsp::FMDemodulator demod;
dsp::AMDemodulator amDemod; dsp::AMDemodulator amDemod;
@ -66,6 +70,7 @@ private:
float sampleRate; float sampleRate;
float bandwidth; float bandwidth;
float demodOutputSamplerate;
float outputSampleRate; float outputSampleRate;
int blockSize; int blockSize;
int _demod; int _demod;

View File

@ -25,7 +25,7 @@ void streamRemovedHandler(void* ctx) {
} }
void sampleRateChanged(void* ctx, float sampleRate, int blockSize) { void sampleRateChanged(void* ctx, double sampleRate, int blockSize) {
} }

View File

@ -1,34 +1,43 @@
{ {
"audio": { "audio": {
"Radio": { "Radio": {
"device": "Speakers (Realtek High Definiti", "device": "CABLE Input (VB-Audio Virtual Cable)",
"sampleRate": 48000.0, "sampleRate": 48000.0,
"volume": 0.4354838728904724 "volume": 0.42578125
},
"Radio 1": {
"device": "CABLE-A Input (VB-Audio Cable A)",
"sampleRate": 48000.0,
"volume": 1.0
},
"Radio 2": {
"device": "CABLE Input (VB-Audio Virtual Cable)",
"sampleRate": 48000.0,
"volume": 1.0
} }
}, },
"bandPlan": "General", "bandPlan": "General",
"bandPlanEnabled": true, "bandPlanEnabled": true,
"fftHeight": 300, "fftHeight": 300,
"frequency": 91000000, "frequency": 98391106,
"max": 0.0, "max": 0.0,
"maximized": false, "maximized": false,
"menuOrder": [
"Source",
"Radio",
"Recorder",
"Audio",
"Scripting",
"Band Plan",
"Display"
],
"menuWidth": 300, "menuWidth": 300,
"min": -70.0, "min": -72.05882263183594,
"showWaterfall": true, "showWaterfall": true,
"source": "HackRF One #0 901868dc282c8f8b", "source": "",
"sourceSettings": { "sourceSettings": {},
"HackRF One #0 901868dc282c8f8b": {
"gains": {
"AMP": 0.0,
"LNA": 0.0,
"VGA": 0.0
},
"sampleRate": 8000000
}
},
"windowSize": { "windowSize": {
"h": 720, "h": 720,
"w": 1280 "w": 1280
}, }
"menuOrder": ["Source", "Radio", "Recorder", "Audio", "Band Plan", "Display"]
} }

View File

@ -1,4 +1,6 @@
{ {
"Radio": "./modules/radio.dll", "Radio": "./modules/radio.dll",
"Recorder": "./modules/recorder.dll" "Recorder": "./modules/recorder.dll",
"Soapy": "./modules/soapy.dll",
"RTLTCPSource": "./modules/rtl_tcp_source.dll"
} }

5
root/radio_config.json Normal file
View File

@ -0,0 +1,5 @@
{
"Radio 1": {
"demodulator":1
}
}

Binary file not shown.

View File

@ -0,0 +1,4 @@
{
"device": "",
"devices": {}
}

View File

@ -1,9 +1,25 @@
{ {
"audio": {}, "audio": {
"Radio": {
"device": "Speakers (Realtek High Definiti",
"sampleRate": 48000.0,
"volume": 0.60546875
},
"Radio 1": {
"device": "CABLE-A Input (VB-Audio Cable A)",
"sampleRate": 48000.0,
"volume": 1.0
},
"Radio 2": {
"device": "CABLE Input (VB-Audio Virtual Cable)",
"sampleRate": 48000.0,
"volume": 1.0
}
},
"bandPlan": "General", "bandPlan": "General",
"bandPlanEnabled": true, "bandPlanEnabled": true,
"fftHeight": 300, "fftHeight": 300,
"frequency": 94930000, "frequency": 98983691,
"max": 0.0, "max": 0.0,
"maximized": false, "maximized": false,
"menuOrder": [ "menuOrder": [
@ -16,12 +32,12 @@
"Display" "Display"
], ],
"menuWidth": 300, "menuWidth": 300,
"min": -51.47058868408203, "min": -72.05882263183594,
"showWaterfall": true, "showWaterfall": true,
"source": "", "source": "",
"sourceSettings": {}, "sourceSettings": {},
"windowSize": { "windowSize": {
"h": 1053, "h": 720,
"w": 959 "w": 1280
} }
} }

View File

@ -1,6 +1,7 @@
{ {
"Radio": "./radio/radio.so", "Radio": "./radio/Release/radio.dll",
"Recorder": "./recorder/recorder.so", "Recorder": "./recorder/Release/recorder.dll",
"Soapy": "./soapy/soapy.so", "Soapy": "./soapy/Release/soapy.dll",
"RTLTCPSource": "./rtl_tcp_source/rtl_tcp_source.so" "RTLTCPSource": "./rtl_tcp_source/Release/rtl_tcp_source.dll",
"FileSource": "./file_source/Release/file_source.dll"
} }

View File

@ -1,9 +1,16 @@
{ {
"device": "HackRF One #0 901868dc282c8f8b", "device": "Generic RTL2832U OEM :: 00000001",
"devices": { "devices": {
"AirSpy HF+ [c852435de0224af7]": {
"gains": {
"LNA": 6.0,
"RF": 0.0
},
"sampleRate": 768000.0
},
"Generic RTL2832U OEM :: 00000001": { "Generic RTL2832U OEM :: 00000001": {
"gains": { "gains": {
"TUNER": 12.817999839782715 "TUNER": 49.599998474121094
}, },
"sampleRate": 2560000.0 "sampleRate": 2560000.0
}, },