Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling MacOS #784

Merged
merged 18 commits into from
Jul 15, 2023
Merged

Enabling MacOS #784

merged 18 commits into from
Jul 15, 2023

Conversation

mastmees
Copy link
Contributor

@mastmees mastmees commented Jul 4, 2023

creating PR against testing branch as asked. Additionally, found one more place that prevented clean shutdown when SDR locks up, and added schematics for power-cycling hardware.

@darksidelemm darksidelemm mentioned this pull request Jul 15, 2023
@darksidelemm darksidelemm merged commit 7064b6b into projecthorus:testing Jul 15, 2023
@darksidelemm
Copy link
Member

Turns out this exception-based approach actually causes other issues, as sometimes the rtlsdr reset happens within a thread, so the main auto_rx.py process never sees the exceptions. I'm probably going to have to revert a bunch of these changes to avoid auto_rx locking up.

@darksidelemm
Copy link
Member

OK, so the particular issue was occuring if an sdr fault occured on the SDR that was being used for scanning.
Since the check and attempt to reset occurs within the scan loop thread, the main process never sees these exceptions
I've add in code which handles the exceptions. What'll happen is it'll try a few times to reset, the scan loop will eventually exit, and then when it tries to start the scan loop again it'll run the sdr test which will trigger the exception that the main process does see...

Bit of a long-winded way of handling it, but I don't see much other option.

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