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 USB update #5618

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Android USB update #5618

wants to merge 4 commits into from

Conversation

bettellam
Copy link

No description provided.

@nirvn
Copy link
Member

nirvn commented Sep 6, 2024

@bettellam , hey there, nice to see you opening a pull request over here, hoping this will be one of more to come :)

If you are interested, I can guide you through adding the UI to select bault rate if this test turns out to fix your issue.

@bettellam
Copy link
Author

@nirvn Thanks
All this comes from #5576
Here I am like "a fish out of water". As I already wrote to @m-kuhn ,
I would never be able to complete something like this, I am not a programmer, I barely read code...
but it seemed like an interesting thing to investigate....

@m-kuhn m-kuhn closed this Sep 7, 2024
@m-kuhn m-kuhn reopened this Sep 7, 2024
@m-kuhn
Copy link
Member

m-kuhn commented Sep 7, 2024

@bettellam as soon as the workflows finished, you should get apks in here https://github.com/opengisch/QField/actions/runs/10750024510?pr=5618
There will still be a failure indicated, but let's ignore that for now.

Let's see where we go with this after the first test results.

@bettellam
Copy link
Author

@m-kuhn Ok. I'm home this afternoon. I'll do a test right away. Thanks

@m-kuhn m-kuhn closed this Sep 7, 2024
@m-kuhn m-kuhn reopened this Sep 7, 2024
@bettellam
Copy link
Author

@m-kuhn Test with the window version:
I reset the default setting of the COM1 port to 9600 baud rate, leaving the receiver set to 115200.
image

Started QField and it connects. !!!!!
image

This means that having changed
mSocket->setBaudRate( QSerialPort::Baud115200 );
is a correct choice.
It will be useful to create a combobox where the user chooses the connection baud rate to the USB port.

As for android I can't find the apr file.

I think that the android.hardware.usb alone is not enough because there are all the authorization problems for the use of the USB!
Here's what happens with SWMaps:
image

@m-kuhn
Copy link
Member

m-kuhn commented Sep 7, 2024

If you scroll down here https://github.com/opengisch/QField/actions/runs/10750305033 can you see the apk files?

@bettellam
Copy link
Author

I don't understand what the file is?
It seems to me that it is not there......

@m-kuhn
Copy link
Member

m-kuhn commented Sep 8, 2024

image

You should be able to download the qfield_dev-android-arm64-android file and install it on your phone/tablet for testing. You might have to uninstall a potentially already installed beta version of qfield before (no conflict with the stable installed version)

@bettellam
Copy link
Author

Nothing... it doesn't install... I tried with 2 devices (android 8 and android10)

@m-kuhn
Copy link
Member

m-kuhn commented Sep 8, 2024

Do you have any error message?

@bettellam
Copy link
Author

Android 8

XRecorder_08092024_114633.mp4

@nirvn
Copy link
Member

nirvn commented Sep 8, 2024

@bettellam , do you have a previous QField 'beta' (i.e. an APK from a PR) installed on your phone?

@bettellam
Copy link
Author

@bettellam , do you have a previous QField 'beta' (i.e. an APK from a PR) installed on your phone?

@m-kuhn Qfield dev beta uninstalled!
Standard Qfiled installed.

@nirvn nirvn closed this Sep 10, 2024
@nirvn nirvn reopened this Sep 10, 2024
@nirvn nirvn closed this Sep 10, 2024
@nirvn nirvn reopened this Sep 10, 2024
@nirvn
Copy link
Member

nirvn commented Sep 10, 2024

@bettellam , alright, new APKs have been generated in the latest Android workflow runs and you'll be able to install those. Let us know :)

@bettellam
Copy link
Author

@nirvn Installation OK
There is nothing in the listbox that refers to my connected USB device.
The USB port access permissions are missing!
(a system form should open with which the user enables USB access)

XRecorder_Edited_10092024_224254.mp4

@m-kuhn
Copy link
Member

m-kuhn commented Sep 10, 2024

I think you need to programmatically ask for these permissions (similar to here

return checkAndAcquirePermissions( "android.permission.ACCESS_FINE_LOCATION" );
)

@nirvn
Copy link
Member

nirvn commented Oct 12, 2024

@bettellam , have your been able to investigate this further?

@bettellam
Copy link
Author

@nirvn
No, I haven't done anything anymore.
Also because I changed phone...
android14 ....
a disaster ...
it doesn't recognize my bluetooth devices anymore...
it's no longer possible to write in the folder
android/data/ch.opengis.qfield

Pravicy and Security are blocking everything!

@nirvn
Copy link
Member

nirvn commented Oct 13, 2024

@bettellam , that sounds dramatic.

it's no longer possible to write in the folder android/data/ch.opengis.qfield

You mean you can't copy files into that folder via USB cable?

@bettellam
Copy link
Author

@nirvn Exactly!

with this application you can copy files to the qfield folder:
https://play.google.com/store/search?q=fv+file+manager&c=apps

@nirvn
Copy link
Member

nirvn commented Oct 13, 2024

@bettellam , I don't think Android 14 is the cause of USB cable transfer not working anymore. I have a pixel 6a with Android 14 and it copies files into that folder without a problem.

@bettellam
Copy link
Author

@nirvn my realme gt6 I did a test with USB cable from PC and it works.
Thanks
I was used to transfer files with android app in wifi
I will investigate...

Add android.hardware.usb.host
@bettellam
Copy link
Author

@nirvn Back to the USB issue
you could try with
android.hardware.usb.host
You need approval to continue....

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.

3 participants