Comments (9)
Hi @WIsbrecht ,
Sorry for the delay. It seems the camera itself does not respond to the request.
I will have a look at Sony's extension to see if there is something essential missing.
Currently no extension is implemented in PTPy for Sony cameras.
Best,
from sequoia-ptpy.
From 2d9e551, there is an ongoing implementation of the Sony extension.
from sequoia-ptpy.
Hey,
i did a quick single step debug session and found that the timeout error occurs even before
Line 119 in db16f26
is called.
Actually the timeout occurs when this is called:
Line 116 in db16f26
An exception is thrown at this location:
sequoia-ptpy/ptpy/transports/usb.py
Lines 405 to 415 in db16f26
from sequoia-ptpy.
Hi,
The write transaction to get the camera details is timing out. It is ignored the first time, but the second time around it fails.
I've reduced the maximum transfer size in the latest master.
Could you give it a go?
Also, have you enabled the remote control in the options in the camera?
from sequoia-ptpy.
Hey,
just tried the latest master. No dice.
I can control the camera with gphoto2 though.
Could it be the udev rules which come with gphoto? Is there a way to actually make sure that ptpy can talk to my camera?
from sequoia-ptpy.
Usually all it takes is to disable automatic volume mounting (or manually ejecting the camera volume before running your script).
But by the looks of it, it is not the camera being busy that fails but rather that it times out.
from sequoia-ptpy.
Hey,
so it seems as though automatic volume mounting is already disabled, hence gphoto2 is able to control the camera.
How would you proceed with debugging this further? Would be nice if someone with another Sony camera could give ptpy a try and report back.
from sequoia-ptpy.
Hi @WIsbrecht ,
I have a couple of Sony cameras at hand for testing.
There should be no issue in instantiating the camera.
Please try with the latest master and ensure the camera is not mounted.
FYI, the Ubuntu interface uses libgphoto2 so it might handle handing the camera back and forth. This is not the case for PTPy, it is fully independent.
A full implementation of the Sony extension is on the works.
Best,
from sequoia-ptpy.
Hi,
just an update regarding Sony camera support.
I have setup a raspberry pi 4 and my Sony a6000 camera.
I tried the latest master branch of ptpy (28 December 2020).
Catching the device information with the example script print_device_info.py works fine:
https://pastebin.com/DJXAnnsq
However, i tried the trigger.py and the download_all_images.py scripts and got usb.core.USBError: [Errno 32] Pipe errors.
The debug output for trigger.py is available here:
https://pastebin.com/AJxES4kv
The debug output for download_all_images.py is available here:
https://pastebin.com/7g5GMyTz
I would love to use PTPy for my Sony camera project instead of gphoto2.
What could be the reasons for the errors?
Best
from sequoia-ptpy.
Related Issues (20)
- No TCP_QUICKACK under OS X HOT 1
- Canon 6D over IP HOT 1
- iOS 11.1 compatibility
- IP connection problem HOT 3
- usb.core.USBError: [Errno 32] Pipe error HOT 3
- How to send raw commands without writing an extension module? HOT 2
- Can't import "Range" from construct 2.8.22 package into usb.py HOT 10
- Error in usb.py event function HOT 1
- Python 3 incompatibility in event polling HOT 2
- "polling exception: a bytes-like object is required, not 'str'" HOT 5
- No USB PTP device found HOT 5
- Operation timed out HOT 2
- Lambda missing 1 required positional argument: 'lst' HOT 5
- How to set-up libUSB on Windows? HOT 12
- Operation timed out
- Extension for Ricoh Theta cameras HOT 2
- Enable ViewFinder on Canon EOS 2000D
- Update to construct 2.10 HOT 1
- How to get live camera stream to process imagery with OpenCV?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sequoia-ptpy.