Skip to content

Commit

Permalink
Merge pull request #929 from argilo/unique-ssrc
Browse files Browse the repository at this point in the history
Ensure that SSRC values are unique
  • Loading branch information
darksidelemm authored Nov 6, 2024
2 parents 5149e49 + 7479c85 commit 50524fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions auto_rx/autorx/ka9q.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def ka9q_setup_channel(
f"--mode iq "
f"--low {int(sample_rate) / (-2.4)} --high {int(sample_rate) / 2.4} "
f"--frequency {int(frequency)} "
f"--ssrc {int(frequency)} "
f"--ssrc {round(frequency / 1000)}01 "
f"--radio {sdr_hostname}"
)

Expand Down Expand Up @@ -71,7 +71,7 @@ def ka9q_close_channel(
f"--samprate 48000 "
f"--mode iq "
f"--frequency 0 "
f"--ssrc {int(frequency)} "
f"--ssrc {round(frequency / 1000)}01 "
f"--radio {sdr_hostname}"
)

Expand Down
6 changes: 3 additions & 3 deletions auto_rx/autorx/sdr_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_sdr(
f"tune "
f"--samprate 48000 --mode iq "
f"--frequency {int(check_freq)} "
f"--ssrc {int(check_freq)}314 "
f"--ssrc {round(check_freq / 1000)}02 "
f"--radio {sdr_hostname}"
)

Expand Down Expand Up @@ -112,7 +112,7 @@ def test_sdr(
f"tune "
f"--samprate 48000 --mode iq "
f"--frequency 0 "
f"--ssrc {int(check_freq)}314 "
f"--ssrc {round(check_freq / 1000)}02 "
f"--radio {sdr_hostname}"
)

Expand Down Expand Up @@ -772,7 +772,7 @@ def get_power_spectrum(
_timeout_cmd = f"{timeout_cmd()} {integration_time+10} "
_center_freq = (frequency_start + frequency_stop) / 2
_bins = ((frequency_stop - frequency_start) / step) + 1 # 3001 for 2.4MHz @ 800Hz bins/steps
_ssrc = _center_freq * 1000 + 314
_ssrc = f"{round(_center_freq / 1000)}03"

_powers_cmd = (
f"{_timeout_cmd} {ka9q_powers_path} "
Expand Down

0 comments on commit 50524fa

Please sign in to comment.