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

Android: Fix Serial Issues #12063

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Conversation

HTRamsey
Copy link
Collaborator

@HTRamsey HTRamsey commented Nov 3, 2024

Closes #12031
Hopefully fixes freezing after several hours by increasing buffer and adding memory checks
Moves serial code to another java class for better organization
Better debugging output and result verification
Moving serial link to a separate thread should resolve any remaining issues

@HTRamsey HTRamsey force-pushed the dev-android-serial branch 8 times, most recently from af62984 to 6ccecb8 Compare November 9, 2024 06:39
@@ -285,7 +285,7 @@ bool JoystickAndroid::init() {
return true;
}

static const char kJniClassName[] {"org/mavlink/qgroundcontrol/QGCActivity"};
static const char kJniClassName[] {"org/mavlink/qgroundcontrol/QGCUsbSerialManager"};
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this correct. Seems strange?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, it's because all the serial methods were moved to a separate class "QGCUsbSerialManager" to organize the code a bit.

@HTRamsey HTRamsey merged commit 2814c75 into mavlink:master Nov 19, 2024
7 checks passed
@HTRamsey HTRamsey deleted the dev-android-serial branch November 19, 2024 22:04
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.

Android App freezes after random period when connecting over serial
2 participants