peci1 / lumix-link-desktop

A unofficial desktop version of the Panasonic Lumix Link app for remote control of your Lumix camera.
BSD 3-Clause "New" or "Revised" License
154 stars 21 forks source link

error when trying to connect #8

Open caullla opened 4 years ago

caullla commented 4 years ago

I'm getting err_unsuitable_app for any request. Any idea why?

peci1 commented 4 years ago

Try to be more verbose. How do you connect to the camera (which camera :) ), how you launch the app... Just anything that could help debugging the issue.

caullla commented 4 years ago

I have g85. I create a hot-spot on camera and connect my pc to that wifi. I open. requests.html and it ask me to enter IP address. I figured out that camera IP is 192.168.54.1. If I click any button I get err_unsuitable_app

caullla commented 4 years ago

Do you have API/protocol documentation somewhere? I would appreciate if you can share it.

caullla commented 4 years ago

It is working if I connect camera to my home Wifi...

peci1 commented 4 years ago

Good, so at least something. If you try connecting via the hotspot, can you try to open http://192.168.54.1/cam.cgi?mode=getstate in your browser?

The API is not published anywhere I know, so this has been mostly reverse-engineering, which has its limits. Most of the reverse-engineered endpoints are in requests.html.

caullla commented 4 years ago

GET: http://192.168.54.1/cam.cgi?mode=getstate

<camrply>
<result>err_unsuitable_app</result>
</camrply>
peci1 commented 4 years ago

It's apparently not only a problem of this alternative app:

https://www.dpreview.com/forums/post/59890874 https://www.dpreview.com/forums/post/59361977

Maybe you can try an idea from the first link: before accessing this dekstop app, try to connect to the camera from the Android app.

peci1 commented 4 years ago

Ok, I'm able to reproduce this on my GX-80. I'm having a look into it, but it's probably gonna be a tough one...

If anybody else wanted to help, here's a wireshark capture of the communication of a tablet and the camera. The capture starts at the moment the tablet connects to the hotspot, and ends with a command to take a picture. During most of the capture, a continuous video feed is transmitted over UDP, which shows the camera viewfinder. But that's probably not really helpful for this debugging.

lumix_app2.zip

peci1 commented 4 years ago

I think I got this fixed in version 3.3.0.

If it still wouldn't work when connected to a hotspost, can you try manually opening http://192.168.54.1/cam.cgi?mode=accctrl&type=req_acc&value=0&value2=Lumix%20Link%20Desktop before running the app? This seems to be the magical command that opens the connection. It also forces the camera to ask you to authorize the device on first connection.

caullla commented 4 years ago

Thanks for quick fix and sorry for late response. Was a bit busy. I will test it today.