demod

Examples

The following will take the data from input.dat, and output 48 ksps baseband that can be sent to audio:

cat input.dat | ./mod > baseband.raw

The following will take the baseband data, demodulate and decode it:

can baseband.raw | ./demod > output.dat

We can also combine it into one command:

cat input.dat | ./mod | ./demod > output.dat

input.dat and output.dat should be identical.

In case the cat command is not useful, e.g. because we call demod from a GUI and use pipes to connect we can use:

./demod < input.pipe > output.pipe

input.pipe would be the pipe for raw samples from the receiver (connected to the output of an USB demodulator at 48ksps) and output.pipe will contain the demodulated data. The same trick can be sued with mod.

Utilities

addcw

Generates morse code signal and adds it to the input signal. See manual page for details.

addnoise

Generates Gaussian noise and adds it to the input signal. See manual page for details.