master
cheetah 5 years ago
parent 59a56accaf
commit 5b0e921b66

@ -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)
"""

@ -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)
Loading…
Cancel
Save