Skip to content
This repository has been archived by the owner on Dec 31, 2019. It is now read-only.

Commit

Permalink
fixin bug when SDR AIS is the first input signal
Browse files Browse the repository at this point in the history
  • Loading branch information
sailoog committed Feb 1, 2016
1 parent c6854dc commit f9167b5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,10 @@
if kplex=='1':
subprocess.Popen('kplex')

subprocess.call(['pkill', '-9', 'aisdecoder'])
subprocess.call(['pkill', '-9', 'rtl_fm'])
if enable=='1':
frecuency='161975000'
if channel=='b': frecuency='162025000'
rtl_fm=subprocess.Popen(['rtl_fm', '-f', frecuency, '-g', gain, '-p', ppm, '-s', '48k'], stdout = subprocess.PIPE)
aisdecoder=subprocess.Popen(['aisdecoder', '-h', '127.0.0.1', '-p', '10110', '-a', 'file', '-c', 'mono', '-d', '-f', '/dev/stdin'], stdin = rtl_fm.stdout)

subprocess.call(["pkill", '-9', "node"])
if signalk=='1':
subprocess.Popen(home+'/.config/signalk-server-node/bin/nmea-from-10110', cwd=home+'/.config/signalk-server-node')

if gps_time=='1':
subprocess.call(['sudo', 'python', currentpath+'/time_gps.py'])

Expand All @@ -134,3 +126,11 @@

subprocess.call(['pkill', '-f', 'monitoring.py'])
subprocess.Popen(['python',currentpath+'/monitoring.py'])

subprocess.call(['pkill', '-9', 'aisdecoder'])
subprocess.call(['pkill', '-9', 'rtl_fm'])
if enable=='1':
frecuency='161975000'
if channel=='b': frecuency='162025000'
rtl_fm=subprocess.Popen(['rtl_fm', '-f', frecuency, '-g', gain, '-p', ppm, '-s', '48k'], stdout = subprocess.PIPE)
aisdecoder=subprocess.Popen(['aisdecoder', '-h', '127.0.0.1', '-p', '10110', '-a', 'file', '-c', 'mono', '-d', '-f', '/dev/stdin'], stdin = rtl_fm.stdout)

0 comments on commit f9167b5

Please sign in to comment.