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: Update Serial Driver #11536

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HTRamsey
Copy link
Collaborator

@HTRamsey HTRamsey commented May 15, 2024

Allows Android to work with most devices. Tested by updating firmware on a cube orange.
fixes #11300
fixes #9052
closes #10629
#11007

@HTRamsey HTRamsey requested a review from mrpollo May 15, 2024 09:10
Copy link
Member

@mrpollo mrpollo left a comment

Choose a reason for hiding this comment

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

Just have a question regarding duplicate hardware device information across the project

customTable.addProduct(QGCUsbId.VENDOR_PX4, QGCUsbId.DEVICE_PX4FMU_V2, CdcAcmSerialDriver.class);
customTable.addProduct(QGCUsbId.VENDOR_PX4, QGCUsbId.DEVICE_PX4FMU_V3, CdcAcmSerialDriver.class);
customTable.addProduct(QGCUsbId.VENDOR_PX4, QGCUsbId.DEVICE_PX4FMU_V4, CdcAcmSerialDriver.class);
customTable.addProduct(QGCUsbId.VENDOR_PX4, QGCUsbId.DEVICE_PX4FMU_V4PRO, CdcAcmSerialDriver.class);
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to add the whole list of FMU versions here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So this list (the entire custom table) is the only part I really have no idea about, as I can't test every device. The cube I used worked without the use of the customTable entirely. I honestly am not sure what to put in it or not.

public static final int DEVICE_PX4FMU_V6U = 0x0036;
public static final int DEVICE_PX4FMU_V6X = 0x0035;
public static final int DEVICE_PX4FMU_V6XRT = 0x001D;
public static final int DEVICE_PX4MINDPX_V2 = 0x0030;
Copy link
Member

Choose a reason for hiding this comment

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

It seems like we already carry this information elsewhere, is there any way to avoid duplicating?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

USBBoardInfo.json, And I could probably come up with a way but I don't know Java well enough to do it easily. Maybe through CMake after we drop QMake.

@HTRamsey
Copy link
Collaborator Author

@DonLakeFlyer this may be useful for your herelink build

@HTRamsey HTRamsey force-pushed the dev-android-serial-update branch 3 times, most recently from b7d8f75 to 5da0d15 Compare June 1, 2024 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants