mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-03 03:24:39 +02:00
add some comments
This commit is contained in:
parent
c4b9f54df6
commit
9a9a8c22d7
|
|
@ -13,27 +13,30 @@
|
||||||
from boswatch.processManager import ProcessManager
|
from boswatch.processManager import ProcessManager
|
||||||
from boswatch.decoder.decoder import Decoder
|
from boswatch.decoder.decoder import Decoder
|
||||||
import logging.config
|
import logging.config
|
||||||
import subprocess
|
|
||||||
logging.config.fileConfig("config/logger_client.ini")
|
logging.config.fileConfig("config/logger_client.ini")
|
||||||
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
##### RTL_FM configuration
|
||||||
sdrProc = ProcessManager("/usr/bin/rtl_fm")
|
sdrProc = ProcessManager("/usr/bin/rtl_fm")
|
||||||
sdrProc.addArgument("-f 85M")
|
sdrProc.addArgument("-f 85M")
|
||||||
# sdrProc.addArgument("-M fm")
|
# sdrProc.addArgument("-M fm")
|
||||||
if not sdrProc.start():
|
if not sdrProc.start():
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
sdrProc.skipLines(20)
|
sdrProc.skipLines(20)
|
||||||
|
|
||||||
|
|
||||||
|
##### MULTIMON configuration
|
||||||
mmProc = ProcessManager("/opt/multimon/multimon-ng", textMode=True)
|
mmProc = ProcessManager("/opt/multimon/multimon-ng", textMode=True)
|
||||||
# mmProc.addArgument("-i")
|
# mmProc.addArgument("-i")
|
||||||
mmProc.addArgument("-a FMSFSK -a POCSAG512 -a POCSAG1200 -a POCSAG2400")
|
mmProc.addArgument("-a FMSFSK -a POCSAG512 -a POCSAG1200 -a POCSAG2400")
|
||||||
# mmProc.addArgument("-f alpha")
|
# mmProc.addArgument("-f alpha")
|
||||||
mmProc.addArgument("-t raw -")
|
mmProc.addArgument("-t raw -")
|
||||||
mmProc.setStdin(sdrProc.stdout)
|
mmProc.setStdin(sdrProc.stdout)
|
||||||
mmProc.start()
|
if not mmProc.start():
|
||||||
|
exit(0)
|
||||||
# mmProc.skipLines(5)
|
# mmProc.skipLines(5)
|
||||||
|
|
||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
if not mmProc.isRunning:
|
if not mmProc.isRunning:
|
||||||
logging.warning("multimon was down - try to restart")
|
logging.warning("multimon was down - try to restart")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue