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
[testing needed] Android: implement usb-serial-for-android driver support #2647
Conversation
Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide. |
Signed-off-by: Christof Arnosti <charno@charno.ch>
Signed-off-by: Christof Arnosti <charno@charno.ch>
Signed-off-by: Christof Arnosti <charno@charno.ch>
Signed-off-by: Christof Arnosti <charno@charno.ch>
Signed-off-by: Christof Arnosti <charno@charno.ch>
Signed-off-by: Christof Arnosti <charno@charno.ch>
Signed-off-by: Christof Arnosti <charno@charno.ch>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First: awesome. So excited to see this
Generally I prefer more descriptive commit messages. That makes it much easier to go through the history and figure out what is what.
There are a number of whitespace issues (yeah, I know, everyone's a critic and it's the easiest thing to pick on - but after 8 years of trying to bring consistency my eyes are used to certain patterns... I'm happy to simply clean this up as part of manually merging your code)
I added a couple of questions and suggestions below.
But overall this looks very promising
private static final int DC_STATUS_TIMEOUT = -7; | ||
private static final int DC_STATUS_PROTOCOL = -8; | ||
private static final int DC_STATUS_DATAFORMAT = -9; | ||
private static final int DC_STATUS_CANCELLED = -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is of course rather fragile... would it be possible to auto-generate the code snippet here from libdivecomputer sources? Certainly not required to merge this, but might be a way to ensure that things don't break if Jef changes a constant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, maybe that's possible, but I wouldn't know how...
android-mobile/src/org/subsurfacedivelog/mobile/AndroidSerial.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Christof Arnosti <charno@charno.ch>
…roid" -> "usb-serial" Signed-off-by: Christof Arnosti <charno@charno.ch>
Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide. |
Signed-off-by: Christof Arnosti <charno@charno.ch>
Signed-off-by: Christof Arnosti <charno@charno.ch>
tested the Mares Icon HD. Works flawlessly (and crazy fast... wow) Excellent work @charno |
merged via #2650 |
Hi Dirk,
It was a pleasure working on this and finally do some "bigger" open
source contribution after years of benefiting.
Thanks for the cleanup and the merging. I had a look at your changes and
I think I got what I can learn from it.
I'd love if you could ping me when the beta is out on the play store.
Best regards
Christof
Am 07.03.20 um 20:54 schrieb Dirk Hohndel:
…
tested the Mares Icon HD. Works flawlessly (and crazy fast... wow)
I did the merge locally and will push this in a few minutes.
Feel free to look at how I edited the commits and some of the commit
messages... I tried to keep a light touch, yet make it consistent with
our best practices. And to combine commits where you fixed up earlier
changes.
Excellent work @charno <https://github.com/charno>
Thank you so much.
I hope to have a Google Play beta based on this code relatively soon...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2647>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAURBXMOMWBUJWLNKAMKBC3RGKQ5TANCNFSM4LDBBFSQ>.
|
I just got the notification on one of my older tablets and tested both the Mares and the OSTC 3 - and both worked perfectly. So yes, the beta is available in the Play Store. I need to fix the code that tries to populate the download screen to auto-select usb-serial instead of FTDI. I'll try to get this done later today and push another beta. And for the record: the pleasure is all mine. This is a major contribution to an open source project. Something you should be really proud of. |
Oh, I should mention... the earlier tests were done with two newer Android phones running Android 10 and using a USB C - to - A connector. |
Sounds good to me. Believe me, I am proud! :-) One small thing I noticed while testing (and if you do some work in this area anyways, or I could also open a new Issue?) is this: When I sync from the computer, I get status messages on the right side of the buttons. If I abort and retry ("Wiederholen") the sync, the status does not update anymore. |
please file and issue, ideally with screen shots :-) |
This pull request allows to use a virtual "usb-serial-for-android" device to download dives from divecomputers with different USB-to-Serial chipsets.
Describe the pull request:
Pull request long description:
This pull request allows to use a virtual "usb-serial-for-android" device to download dives from divecomputers with different USB-to-Serial chipsets. With this changes, FTDI-Based divecomputers also work again.
Currently I did only test this driver with a Mares Puck Pro. Please test this with other computers before merging!
The apk of this changes can be found at https://github.com/Subsurface-divelog/subsurface/suites/503855254/artifacts/2603870
Tested:
Changes made:
Related issues:
Possibly Fixes #2108
Release note:
Mobile-android: Add usb-serial-for-android driver support
Documentation change:
Add reference to usb-serial-for-android driver support.
Mentions:
@glance-