Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

error when trying to connect #8

Open
caullla opened this issue Mar 28, 2020 · 10 comments
Open

error when trying to connect #8

caullla opened this issue Mar 28, 2020 · 10 comments

Comments

@caullla
Copy link

caullla commented Mar 28, 2020

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

@peci1
Copy link
Owner

peci1 commented Mar 28, 2020

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
Copy link
Author

caullla commented Mar 28, 2020

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
Copy link
Author

caullla commented Mar 28, 2020

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

@caullla
Copy link
Author

caullla commented Mar 28, 2020

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

@peci1
Copy link
Owner

peci1 commented Mar 28, 2020

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
Copy link
Author

caullla commented Mar 29, 2020

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

<camrply>
<result>err_unsuitable_app</result>
</camrply>

@peci1
Copy link
Owner

peci1 commented Apr 1, 2020

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
Copy link
Owner

peci1 commented Apr 3, 2020

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
Copy link
Owner

peci1 commented Apr 3, 2020

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
Copy link
Author

caullla commented Apr 9, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants