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

Canon Powershot SX540 HS Timout while capturing #360

Open
Creat1veM1nd opened this issue Jan 27, 2019 · 30 comments
Open

Canon Powershot SX540 HS Timout while capturing #360

Creat1veM1nd opened this issue Jan 27, 2019 · 30 comments
Assignees
Labels
Canon tagging canon reports

Comments

@Creat1veM1nd
Copy link

Creat1veM1nd commented Jan 27, 2019

With the newest version of gphoto2 (2.5.20) and libgphoto2 (2.5.22) I finally managed to get my Canon Powershot SX540 HS recognized. The system is a Lubuntu 18

I called gphoto2 --capture-image
The camera driver is loaded. Then a long time nothing happens. After some time I do get the message "Canon EOS M Full-Press failed" plus 0x02ff.

After some time then also a error about a event with 0x2002

A picture is not taken and the camera hangs. I need to remove the battery to get the camera reacting again.

As read somewhere I needed to unmount the camera first in order to get not I/O Error.

I attached a debug file. I hope it helps. I also added a file while trying --capture-preview

Thanks in advance!
debug.txt

my-logfile.txt

@Creat1veM1nd
Copy link
Author

Creat1veM1nd commented Jan 30, 2019

Same problem occurs when trying to set e.g. the ISO settings via --set-config. A --list-config or --get-config works.

I will reproduce it within the next days and post another debug file.

@msmeissn msmeissn added the Canon tagging canon reports label Feb 2, 2019
@msmeissn msmeissn self-assigned this Feb 2, 2019
@msmeissn
Copy link
Contributor

msmeissn commented Feb 2, 2019

in both debug logs the communication with the camera seems already dead (it only gets timeouts)

Can you get one after a fresh attach?

I had reports that SX540HS works from someone else :/

@Creat1veM1nd
Copy link
Author

No problem, will do so - as soon as possible.

I read some where that this camera works , too. That's why I am wondering why I am not able to get it working.

Thanks for looking into that issue!

@Creat1veM1nd
Copy link
Author

Hopefully I did everything right:

  • System start
  • plugged in my camera
  • open terminal
  • open filemanager
  • turn on camera
  • linux recognized camera and mounted it
  • unmount camera in filemanager
  • closed filemanager
  • run gphoto2 --debug --set-config /main/imgsettings/iso=2 2>&1 | tee gphoto.log

gphoto.log

@Creat1veM1nd
Copy link
Author

Please let me know if I can do anything more to give you as much information as possible.

@jam35L
Copy link

jam35L commented Feb 19, 2019

Encountered a similar issue with the following:
LibGphoto version 2.5.22:
"cameramodel": "Canon EOS M6",
"deviceversion": "3-15.0.1.0",
"manufacturer": "Canon Inc.",
"model": "67567616",
Changing date time works.

Problem: Changing camera caputre settings (aperture or shutterspeed) or imgage settings (iso) did not cause and error. But when an attempt to trigger the camera to take photo, it causes a camera error: "Canon EOS M Full-Press failed (0x2019: PTP Device Busy)"

@Creat1veM1nd
Copy link
Author

Any news about it ?

@Creat1veM1nd
Copy link
Author

I gave it a try again with the latest release, still the same. Any news on it ?

@mechrekt
Copy link

Same problem occurs when trying to set e.g. the ISO settings via --set-config. A --list-config or --get-config works.

I will reproduce it within the next days and post another debug file.

Hi, I have the same camera and same problems with gphoto2. Have you managed to solve the problem?

@Creat1veM1nd
Copy link
Author

@mechrekt : Sadly not. I gave up trying it since nothing helped and no one seems to have a solution or a hint.

@mechrekt
Copy link

Thank you for your reply. The sad thing is that on gphoto web page the camera is declared as supported (Image Capture, Liveview, Configuration).
I purposely bought this camera knowing it was supported....now i hope i can make a return...
Have you tested any other cameras, so to be on the safe side?

Thank you

@Creat1veM1nd
Copy link
Author

Creat1veM1nd commented Aug 12, 2020

I do not have any other camera which is supported, so sadly no other testing possible.

@hfiguiere
Copy link
Member

Thank you for your reply. The sad thing is that on gphoto web page the camera is declared as supported (Image Capture, Liveview, Configuration).

It seemed to work until it didn't. It is users like you that report and try camera, and that's what the information is based. Sometime users also help debugging and the trial and error it takes. Unless Marcus has the camera to actually debug it, and even then it's not a done deal ; it remain a difficult task.

Remember: none of the camera vendors help. No doc, no support, not even hardware (loans). Marcus do this on his free time.

I purposely bought this camera knowing it was supported....now i hope i can make a return...

Don't forget to tell the manufacturer why you return it. While bearing no hope, it surely has more impact than not telling anything. Given how the market / revenue is going downhill they might have to change.

@mechrekt
Copy link

Ok, I understand, I agree with you.

If someone has some time to try I can give debug files if it helps. I've already sent debug file to gphoto-devel@lists.sourceforge.net hoping to do the right thing.

Thank you again guys.

@msmeissn
Copy link
Contributor

Sorry for losing track of this issue.

In the gphoto.log from @Creat1veM1nd the camera firmware is crashing:

1.381341 ptp_usb_senddata (2): Sending PTP_OC 0x9110 (PTP_OC_CANON_EOS_SetDevicePropValueEx) data...

0000 18 00 00 00 02 00 10 91-18 00 00 00 0c 00 00 00 ................
0010 b0 d1 00 00 08 00 00 00- ........

1.576747 camera_prepare_canon_eos_capture config.c:458: 'ptp_canon_eos_setdevicepropvalue (params, PTP_DPC_CANON_EOS_EVFOutputDevice, &ct_val, PTP_DTC_UINT16)' failed: PTP I/O Error (0x02ff)

We can try to do adjustments to this code.

But in general, the new generation PowerShot SX series cameras ... while they support EOS style capture, it is very fragile and I have not been able to make all versions work. (e.g. my parents SX600HS does not work, my SX720HS works) ...

@mechrekt
Copy link

mechrekt commented Aug 13, 2020 via email

@Creat1veM1nd
Copy link
Author

If needed I can try and give it another shot. Have to set up the whole thing again, so might take a while. But let me know.

@msmeissn
Copy link
Contributor

are you able to update libgphoto2 current git?

@Creat1veM1nd
Copy link
Author

Will try tonight, when off work.

Anything particular I shall test then ?

@mechrekt
Copy link

are you able to update libgphoto2 current git?

Hi,
I've a raspberry pi fresh installed with raspbian and gphoto2 so I think everything is yet up to date. Please tell me if I can test something in particular and give you a feedback. Thank you!

@msmeissn
Copy link
Contributor

So I have a change spoecific to the SX540 HS in current git

in camlibs/ptp2/config.c
if (!strcmp(params->deviceinfo.Model,"Canon PowerShot SX540 HS")) mode = 0x11;

Sio you can try first the current libgphoto2 GIT as-is, if that does not change, adjust the above to "mode = 0x1;" perhaps

@mechrekt
Copy link

Sio you can try first the current libgphoto2 GIT as-is, if that does not change, adjust the above to "mode = 0x1;" perhaps

Sorry I did not understand your last comment. I'm not so expert so if you need me to do something, please try to guide me step by step. Sorry and thank you again.

@msmeissn
Copy link
Contributor

I am afraid you really should be at the knowledge level of "git checkout and recompilation of libgphoto2", otherwise this kind of remote debugging does not make much sense. I currently do not have time to offer help on the git / recompilation parts :/

@mechrekt
Copy link

No problem, please let me know if I can read from somewhere how to "git checkout and recompilation" (I like to learn).
Meanwhile I hope that also @Creat1veM1nd will be able to give us some feedback in time.
Thank you all

@Creat1veM1nd
Copy link
Author

Creat1veM1nd commented Aug 22, 2020

I finally found some time to set up a fresh raspi and install libphoto and gphoto. But ended up with this:

gphoto2: error while loading shared libraries: libgphoto2.so.6: cannot open shared object file: No such file or directory

Tried some hints found in the net like changing the prefix for configure for libphoto, but with no luck. After several hours of trying I gave up.

Would be much appreciate if you could help with that.

I followed the instructions of INSTALL.md for libphoto and the README.md for gphoto2

Having a look in the directories I used for configure always showed libgphoto2.so.6 exists.

@mitsugu
Copy link

mitsugu commented Aug 22, 2020

gphoto2: error while loading shared libraries: libgphoto2.so.6: cannot open shared object file: No such file or directory

Execute the following command.

echo $ LD_LIBRARY_PATH
Does the execution result include the path where libgphoto2.so.6 exists? If not, run the following command.
$export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/foo/bar

The command adds the path /foo/bar where libgphoto2.so.6 resides to the environment variable LD_LIBRARY_PATH and the reference to libgphoto2.so.6 is resolved.

@Creat1veM1nd
Copy link
Author

Creat1veM1nd commented Aug 22, 2020

Ah, thanks. That worked. But next problem occured: camera is not detected.

pi@raspberrypi: $ lsusb Bus 001 Device 011: ID 04a9:32be Canon, Inc.

But

pi@raspberrypi:/usr/local/lib $ gphoto2 --list-ports Devices found: 3 Path Description ptpip: PTP/IP Connection ip: IP Connection serial: Serial Port Device

and
pi@raspberrypi:/usr/local/lib $ gphoto2 --auto-detect Model Port

Probably the raspi 3 might be the cause, since my netbook (running there the not working copy of libphoto) does detect the camera correctly.

Not sure if I will get my hands on another raspi soon, but I will try my best.

@Creat1veM1nd
Copy link
Author

Some news. I got it up and running on my netbook (same device which was used when I originally posted the problem).

I was able to take photos via CLI and Entangle. But as soon as I wanted to set the ISO setting, the camera seems to be in a loop and does not come back.

I tried it with mode=0x11 and mode=0x1 - same behavior.

Attached file was made with running gphoto2 --debug --set-config /main/imgsettings/iso=2 2>&1 | tee gphoto.log

gphoto.log

@msmeissn
Copy link
Contributor

very good to hear it works for capture. does preview work too?

The hang is on closing, hard to say why this specific call hangs

@Creat1veM1nd
Copy link
Author

Live preview with Entangle is working
gphoto2 --capture-preview gives an image, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Canon tagging canon reports
Projects
None yet
Development

No branches or pull requests

6 participants