increase ISM bandwidth; allow bandpass adjustments
This commit is contained in:
parent
cb7e29f7bd
commit
6bc4572650
|
|
@ -5,7 +5,7 @@ from csdr.chain.demodulator import ServiceDemodulator
|
||||||
|
|
||||||
class Rtl433(ServiceDemodulator):
|
class Rtl433(ServiceDemodulator):
|
||||||
def getFixedAudioRate(self) -> int:
|
def getFixedAudioRate(self) -> int:
|
||||||
return 250000
|
return 1000000
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,8 @@ Filter.prototype.getLimits = function() {
|
||||||
max_bw = 4000;
|
max_bw = 4000;
|
||||||
} else if (this.demodulator.get_modulation() === "dab") {
|
} else if (this.demodulator.get_modulation() === "dab") {
|
||||||
max_bw = 1000000;
|
max_bw = 1000000;
|
||||||
|
} else if (this.demodulator.get_secondary_demod() === "ism") {
|
||||||
|
max_bw = 500000;
|
||||||
} else {
|
} else {
|
||||||
max_bw = (audioEngine.getOutputRate() / 2) - 1;
|
max_bw = (audioEngine.getOutputRate() / 2) - 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,5 @@ class Rtl433Module(ExecModule):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
Format.COMPLEX_FLOAT,
|
Format.COMPLEX_FLOAT,
|
||||||
Format.CHAR,
|
Format.CHAR,
|
||||||
["rtl_433", "-r", "cf32:-", "-F", "json", "-M", "time:unix", "-C", "si"]
|
["rtl_433", "-r", "cf32:-", "-F", "json", "-M", "time:unix", "-C", "si", "-s", "1000000"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -179,7 +179,7 @@ class Modes(object):
|
||||||
"ism",
|
"ism",
|
||||||
"ISM",
|
"ISM",
|
||||||
underlying=["empty"],
|
underlying=["empty"],
|
||||||
bandpass=None,
|
bandpass=Bandpass(-125000, 125000),
|
||||||
requirements=["ism"],
|
requirements=["ism"],
|
||||||
squelch=False,
|
squelch=False,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue