airspy/airspyone_host

stdout support

akhenakh opened this issue · 5 comments

I've tried to use airspy_rx with "-r -" to be used on the cli (for example pipe to multimon).

Do you plan to support it ?

I think it needs another switch for stdout.

Hi Fabrice,

You are welcome to add it in your own trunk, test it and give use a link to check, then we could merge it.

Best Regards
Benjamin

It seems f1oat have implemented it here
"airspy_rx can output data on stdout if no output filename is provided" :
f1oat@0ee8703

If there was a quiet option that sent no output at all to the terminal then the following device could be used (at least under UNIX):

$ airspy_rx -r /dev/stdout | hexdump -C | head

Or if the stderr was used for all debug output then the following would work:

$ airspy_rx -r /dev/stdout 2>/dev/null | hexdump -C | head

EDIT:
Maybe Linux disables all output by default if /dev/stdout is being accessed, because the below command does not generate any text that I would have expected to see, 2 letters that are part of "Device Serial Number:","Stop with Ctrl-C",Streaming at" or "MSPS".

$ airspy_rx -r /dev/stdout | strings -n 2

touil commented

Use /dev/stdout.