mmdvm-sdr icon indicating copy to clipboard operation
mmdvm-sdr copied to clipboard

How to push audio samples to mmdvm-sdr ?

Open twitchyliquid64 opened this issue 3 years ago • 5 comments

I'm managed to get this compiling but I couldnt see a concrete reference on how to use it.

From what I can tell you read the generated ttyMMDVM0 to get data that the modem has decoded right?

How then do we feed mmdvm-sdr with audio samples? I saw something about a zmq TCP port?

twitchyliquid64 avatar Sep 12 '21 19:09 twitchyliquid64

As mentioned in the Github Readme :

  1. Clone MMDVMHost code and make RTS check disable modification
  2. Configure MMDVMHost based on your Digital Network parameters
  3. You can use QRadioLink as described or use the gr-mmdvm flowgraph for interfacing with SDR

r4d10n avatar Sep 12 '21 19:09 r4d10n

Is there a way to feed raw I/Q samples in via a unix domain socket or piped through a file descriptor?

I was hoping to use mmdvm-sdr standalone (without using mmdvm-host or gnuradio)

twitchyliquid64 avatar Sep 12 '21 20:09 twitchyliquid64

It might be possible to use zmqcat for streaming audio samples to / from mmdvm-sdr. If you want to use raw I/Q, you can try recreating the FM (de)modulation chain using csdr pipelines.

I'm not quite sure how mmdvm-sdr standalone could be useful without MMDVMHost... If you can elucidate the usecase, it would bring better clarity.

r4d10n avatar Sep 12 '21 20:09 r4d10n

Myself and a good friend of mine are software programmers who want to build (rebuild) a higher-level stack for amateur DMR radio. The one thing neither of us want to deal with is symbol decoding, hence we wanted to use mmdvm for that part of the stack. Our plan was to pump I/Q samples or audio samples into mmdvm, and get out the stream of bits which our code could then handle.

Looking further, it might be possible for us to easily change just IORPi.cpp to read/write to file descriptors instead of using zmq.

twitchyliquid64 avatar Sep 12 '21 20:09 twitchyliquid64

That indeed sounds compelling.. Cheers to you both! Keep us posted.

Commit https://github.com/r4d10n/mmdvm-sdr/commit/dba796384c3aebfe7f49c58dee6fe9b2c3a4d4e4 had wave format output to stdin. I guess it should be obvious from IORPi.cpp now.

r4d10n avatar Sep 12 '21 21:09 r4d10n