asdil12/pymultimonaprs — pull request #5 by mkubon (2014-05-29 11:21:56+00:00)
Title: Decoding more packets with multimon-ng

Hi,
several people found out that adding the option "-t raw" to multimon-ng will decode a lot more packets out of the stream. Therefore line 44 of multimon.py have to be changed:

old: ['multimon-ng', '-a', 'AFSK1200', '-A', '-'],
new: ['multimon-ng', '-a', 'AFSK1200', '-A', '-t', 'raw', '-'],

Works a lot better here now.

Regards,
Marco

diff --git a/pymultimonaprs/multimon.py b/pymultimonaprs/multimon.py
index 61d681a..a722613 100644
--- a/pymultimonaprs/multimon.py
+++ b/pymultimonaprs/multimon.py
@@ -41,7 +41,7 @@ class Multimon:
stdout=subprocess.PIPE, stderr=open('/dev/null')
)
proc_mm = subprocess.Popen(
- ['multimon-ng', '-a', 'AFSK1200', '-A', '-'],
+ ['multimon-ng', '-a', 'AFSK1200', '-A', '-t', 'raw', '-'],
stdin=proc_src.stdout,
stdout=subprocess.PIPE, stderr=open('/dev/null')
)