F5OEO / rpitx

RF transmitter for Raspberry Pi
GNU General Public License v3.0
4.04k stars 536 forks source link

The hyphen versions for the filenames when chaining commands doesn't work #69

Closed OutsourcedGuru closed 7 years ago

OutsourcedGuru commented 7 years ago

For what it's worth, I'm just documenting what I found. The first two commands (arecord + pifm) when daisy-chained using the hyphen version of this seem to work. It's when you try to add the third command (rpitx) into the pipeline that it just produces static.

Substituting the device names /dev/stdout and /dev/stdin throughout works as expected. You could just mention this in the documentation rather than focusing any effort on a fix.

Works:

arecord -D plughw:1 -f S16_LE -r 48000 /dev/stdout | ./pifm /dev/stdin /dev/stdout | sudo ./rpitx -m RF -i /dev/stdin -f 87900

Doesn't work:

arecord -D plughw:1 -f S16_LE -r 48000 - | ./pifm - - | sudo ./rpitx -m RF -i - -f 87900

Best version (without the overrun warnings):

arecord -D plughw:1 -f S16_LE -r 48000 /dev/stdout 2> /dev/null | ./pifm /dev/stdin /dev/stdout | sudo ./rpitx -m RF -i /dev/stdin -f 87900
F5OEO commented 7 years ago

Thx for comment. Working on a new way of modulation thus will be fix at the same time.

OutsourcedGuru commented 7 years ago

No problem (and thanks for an awesome bit of code).