increase sample rate to 1.2M to be able to decode MBus

This commit is contained in:
Jakob Ketterl 2024-01-28 23:04:26 +01:00
parent 6bc4572650
commit e2192a9665
3 changed files with 3 additions and 3 deletions

View File

@ -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 1000000 return 1200000
def __init__(self): def __init__(self):
super().__init__( super().__init__(

View File

@ -18,7 +18,7 @@ Filter.prototype.getLimits = function() {
} 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") { } else if (this.demodulator.get_secondary_demod() === "ism") {
max_bw = 500000; max_bw = 600000;
} else { } else {
max_bw = (audioEngine.getOutputRate() / 2) - 1; max_bw = (audioEngine.getOutputRate() / 2) - 1;
} }

View File

@ -7,5 +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", "-s", "1000000"] ["rtl_433", "-r", "cf32:-", "-F", "json", "-M", "time:unix", "-C", "si", "-s", "1200000"]
) )