EliasOenal / multimon-ng

GNU General Public License v2.0
922 stars 206 forks source link

Issues using tee #91

Open grinsekatze003 opened 6 years ago

grinsekatze003 commented 6 years ago

Hi guys,

I‘m struggling to get multimon-ng to work using tee.

This works perfectly fine and detects all alarms:

rtl_fm -f xxx -M fm -s 22050 | multimon-ng -a ZVEI -f alpha -t raw /dev/stdin -

while using the following code only some alarms get through, the other ones are unnoticed:

rtl_fm -f xxx -M fm -s 22050 | tee /dev/null | multimon-ng -a ZVEI -f alpha -t raw /dev/stdin -

Can someone tell me why?

grinsekatze003 commented 6 years ago

Any ideas? @EliasOenal

EliasOenal commented 6 years ago

I think this is a duplicate of https://github.com/EliasOenal/multimon-ng/issues/70. Sadly I don't know the cause of it.

Edit: I would suggest trying to use the CLI tool "buffer" between tee and multimon-ng. It also has a block size option that could be adjusted.

ramonsmits commented 2 weeks ago

Environment Raspberry Pi4:

Raspberry Pi 4 Model B Rev 1.2
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"

Raspberry Pi reference 2021-03-04
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 461109415073d2eb67083709662ba983cc191f14, stage5

Linux pi2000 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l GNU/Linux
Revision        : c03112
Serial          : 10000000ae6f862a
Model           : Raspberry Pi 4 Model B Rev 1.2
Throttled flag  : throttled=0x0
Camera          : supported=0 detected=0, libcamera interfaces=0

I'm running this:

rtl_fm -s 22050 -f 169.650M -g -9.9 | tee /var/ram/rtlfm.raw | multimon-ng -v 0 -a FLEX -a FLEX_NEXT -t raw /dev/stdin

@grinsekatze003 Can you quantify how much data you are missing?

EliasOenal commented 2 weeks ago

I assume this ticket has been fixed with #214 and #215. Let me know if you still encountered any problems, otherwise I'll close it.