gopro / OpenGoPro

An open source interface specification to communicate with a GoPro camera with accompanying demos and tutorials.
https://gopro.github.io/OpenGoPro/
MIT License
717 stars 155 forks source link

Cannot get wired connection Hero 11 with Android phone #421

Open MS699 opened 1 year ago

MS699 commented 1 year ago

Component What is the bug in? USB/HTTP API

Describe the bug HTTP Get does not work, GoPro can not be pinged

To Reproduce Steps to reproduce the behavior:

  1. Connect Gopro to Android phone (usb-c to usb-c cable)
  2. HTTP Get: http://172.2x.1yz.51:8080/gopro/camera/control/wired_usb?p=1

Expected behavior Camera can be controlled by HTTP commands

Hardware

Additional context I did get the wired usb working on my windows 10 pc (with webcam driver installed).

I did notice that when I connect my phone to the GoPro via USB, the GoPro first says "USB CONNECTED". I then checked my phone's connected devices > USB and saw that the USB was managed by connected device. I switched that so my device manages the USB connection. Then the GoPro shows its controls again on its screens. So this made me think that there my be another setting I should switch on my phone, download something (like the windows driver), or need to do something code wise.

The quik app has no problems using the usb connection.

AlexSkillman10 commented 1 year ago

I am trying to do this exact same thing, but am having an equal lack of success. If anyone could provide any tips or information it would be greatly appreciated.

vateseif commented 7 months ago

+1 on macos

pavlosharhan2 commented 4 months ago

Most likely It's a problem on a phone side.

I use GoPro10/12 and For me USB HTTP Api works On Samsung S22, Pixel 5, but doesn't work On Xperia10. I'm currently investigating this. I feel like I have to toggle some setting like Ethernet tethering/Usb tethering/enable HAL. Have tried almost everything, but no luck yet

mmarich commented 2 months ago

Try placing your phone into airplane mode and disabling WiFi. In my experience so far, that will cause the device to start the USB NCM network interface. I have only tested on a Pixel 6 and 7.

pavlosharhan2 commented 2 months ago

@mmarich I've noticed that too. This doesn't make much sense, right? why wouldn't i be able to use wifi when USB NCM is active...

Means you can't have internet and NCM connection at a time unless you have cellular data

pavlosharhan2 commented 2 months ago

@tcamise-gpsw @MS699 From my observations, the phone has to have USB3.0 port, otherwise the GoPro won't be mounted as ethernet interface no matter which usb configurations are set. Having the same problem on Sony Xperia 10V, but works fine on Pixel5/Samsung S22