Skip to content

Fix to allow the decode to work with the SkyEcho 2 receiver (port 4000).#6

Open
dimme wants to merge 1 commit intoetdey:masterfrom
dimme:skyecho2-fix
Open

Fix to allow the decode to work with the SkyEcho 2 receiver (port 4000).#6
dimme wants to merge 1 commit intoetdey:masterfrom
dimme:skyecho2-fix

Conversation

@dimme
Copy link
Copy Markdown

@dimme dimme commented Jul 28, 2025

  • Remove strict 12-byte length assertion for Skyradar GPS time messages
  • Add format validation to check for expected Skyradar format (byte[1] == 0x2A)
  • Implement graceful handling of unknown message 101 formats
  • Add bounds checking and time validation to prevent crashes
  • Allow decoder to continue processing other messages when MSG101 format is unknown

- Remove strict 12-byte length assertion for Skyradar GPS time messages
- Add format validation to check for expected Skyradar format (byte[1] == 0x2A)
- Implement graceful handling of unknown message 101 formats
- Add bounds checking and time validation to prevent crashes
- Allow decoder to continue processing other messages when MSG101 format is unknown
Copy link
Copy Markdown
Owner

@etdey etdey left a comment

Choose a reason for hiding this comment

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

While I'm not going to take this PR as-is, I have just incorporated your skipping logic for non-Skyradar 101 messages into my main branch. The code now provides a hook point for handling differently formatted type 101 messages.

@etdey
Copy link
Copy Markdown
Owner

etdey commented Aug 16, 2025

Would you mind to grab my latest changes and see if they achieve the results you are looking for? If not, can you post another PR based on my updates?

@dimme
Copy link
Copy Markdown
Author

dimme commented Sep 3, 2025

Hi there. Cannot verify atm, but I will comment here as soon as I do.

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