Skip to content

Sat scan improve#37

Merged
hunterhubble merged 1 commit into
HubbleNetwork:mainfrom
hunterhubble:sat-scan-improve
Jun 30, 2026
Merged

Sat scan improve#37
hunterhubble merged 1 commit into
HubbleNetwork:mainfrom
hunterhubble:sat-scan-improve

Conversation

@hunterhubble

@hunterhubble hunterhubble commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

feat: Add RS Corrections per packet

  • Both timing and RS corrections only appear with --debug

  • Added total RS corrections (header + payload) to the table
    when you run 'hubblenetwork sat scan' per packet

  • Also added an optional --pluto-uri parameter to sat scan. This is heplful if
    a pluto device is passed over USB, I can add the flag '--pluto-uri :usb'

  • When using sat scan and providing a key, the average symbol length and gap length
    in ms will print in the row per packet decoded

  • If measured average symbol time is 4ms off nominal, print a warning

Coincides with commit 492f5b6 from sdr-docker

@hunterhubble hunterhubble force-pushed the sat-scan-improve branch 2 times, most recently from 3dec12c to 3329e8c Compare June 26, 2026 00:41
@HongNguyen635

Copy link
Copy Markdown

I think the key decrypt with unix / uptime counter is already added in PR #38 and #40 .

  • could you please add the description to this PR as well?

@hunterhubble hunterhubble force-pushed the sat-scan-improve branch 2 times, most recently from dee9d66 to 2bd14fe Compare June 26, 2026 18:28
Comment thread src/hubblenetwork/cli.py Outdated
Comment thread src/hubblenetwork/cli.py
@hunterhubble hunterhubble force-pushed the sat-scan-improve branch 2 times, most recently from 52baeca to 2f30dc8 Compare June 29, 2026 23:34
@hunterhubble

Copy link
Copy Markdown
Contributor Author

@HongNguyen635 I've made the symbol timing warning threshold 4ms based on Charles' advice, this can be subject to change if needed though.

@HongNguyen635 HongNguyen635 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you also want add what Vamsi & Art said about the drift as well? I guess it kind of implicitly account for when you do average symbol time > 4.0 ms?

Comment thread src/hubblenetwork/cli.py Outdated
Comment on lines +609 to +610
if pkt.sym_mean_ms is not None and abs(pkt.sym_mean_ms - 8.0) > 4.0:
warnings.append(f"sym {pkt.sym_mean_ms:.2f} ms (expected 8.00)")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we have this constant 8.0 and 4.0 somewhere? I feel like magic number like this is dangerous in which later on if the protocol change, we could forget what it means.

Maybe add constants and/or a comment explaining the reason behind 4.0 ms.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, my bad, that's not good practice

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hunterhubble you forgot to update the numbers in these 2 lines with the constants?

@hunterhubble

Copy link
Copy Markdown
Contributor Author

@HongNguyen635 I think that the drift can still be valuable. The average timing could look fine but the drift could still be problematic at the same time. There are already several features in this PR, and I would also have to start another PR in sdr-docker to do so. I will definitely do that though.

Comment thread src/hubblenetwork/cli.py Outdated
# Symbol time tolerance. With our envelope detection, we can expect the symbol
# to be off by 1/2 of the length of the symbol before that envelope
# reads the adjacent symbol, Any deviation from the nominal 8ms will see a dB
#loss, but the frequency will be correct

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: add a space after #

Comment thread src/hubblenetwork/cli.py Outdated
Comment on lines +609 to +610
if pkt.sym_mean_ms is not None and abs(pkt.sym_mean_ms - 8.0) > 4.0:
warnings.append(f"sym {pkt.sym_mean_ms:.2f} ms (expected 8.00)")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hunterhubble you forgot to update the numbers in these 2 lines with the constants?

@hunterhubble hunterhubble force-pushed the sat-scan-improve branch 2 times, most recently from 559f86c to f558aee Compare June 30, 2026 18:23

@HongNguyen635 HongNguyen635 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

- Both timing and RS corrections only appear with --debug
- Added total RS corrections (header + payload) to the table
when you run 'hubblenetwork sat scan' per packet
- Also added an optional --pluto-uri parameter to sat scan. This is heplful if
a pluto device is passed over USB, I can add the flag '--pluto-uri :usb'

- When using sat scan and providing a key, the average symbol length and gap length
in ms will print in the row per packet decoded
- If measured average symbol time is 1ms off nominal, or
if the gap is 200us off nominal, print a warning line

Coincides with commit 492f5b6 from sdr-docker

Signed-off-by: Hunter Patchett <hunter@hubble.com>
@hunterhubble hunterhubble merged commit 04d8d19 into HubbleNetwork:main Jun 30, 2026
2 checks passed
@hunterhubble hunterhubble deleted the sat-scan-improve branch June 30, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants