View Single Post
  #56 (permalink)  
Old January 22nd, 2006, 03:56 PM
SonuvBob SonuvBob is offline
Mistic Surveyor
 
Join Date: Jan 2006
Posts: 116
Send a message via AIM to SonuvBob
If you're looking for a quick workaround, edit camlibs/ptp2/ptp.h in the libgphoto2 source and change PTP_USB_BULK_HS_MAX_ PACKET_LEN from 512 to 4096 (or higher if you expect to have >1000 files). Big thanks to OrthoB for figuring that out.

I finally got around to doing that, and it works great. Oddly enough it still gets that extra byte when there's exactly 124 object handles (resulting in a 513 byte packet instead of 512), though it doesn't seem to cause problems. I wonder if this happens every time the object handle list packet size is a multiple of 256 bytes (it happened for OrthoB at 768 bytes).
Reply With Quote