diff --git a/main.py b/main.py index 8499e2a..87813e9 100644 --- a/main.py +++ b/main.py @@ -7,8 +7,8 @@ from SoapySDR import * #SOAPY_SDR_* constants import protocols.Nemaxx_WL10_SmokeDetector nemaxx = protocols.Nemaxx_WL10_SmokeDetector.Nemaxx_WL10_SmokeDetector() -with open('nemaxx.complex', 'wb') as f: - samples = nemaxx.generateSamples(repeatNum=20) +with open('output.complex', 'wb') as f: + samples = nemaxx.generateSamples(repeatNum=10) samples.tofile(f) """ diff --git a/protocols/Nemaxx_WL10_SmokeDetector.py b/protocols/Nemaxx_WL10_SmokeDetector.py index 7cf1123..ebe6950 100644 --- a/protocols/Nemaxx_WL10_SmokeDetector.py +++ b/protocols/Nemaxx_WL10_SmokeDetector.py @@ -19,5 +19,6 @@ class Nemaxx_WL10_SmokeDetector: self.modulator.addPadding(1400 if int(j) == 0 else 2750) self.modulator.addModulation(795) self.modulator.addPadding(1337) # Packet Sync + self.modulator.addPadding(20000) return self.modulator.getSamplesAndReset(numpyType) \ No newline at end of file