magiclantern_simplified icon indicating copy to clipboard operation
magiclantern_simplified copied to clipboard

RP.160: enable CHDK PTP commands

Open coon42 opened this issue 3 years ago • 2 comments

This PR enables CHDK PTP commands for RP.160. This allows interacting with the camera via ptpcam tool. The following CHDK commands were testes successfully yet:

  • download
  • upload
  • m (read memory)

All other commands are untested and not recommended to be used, once they have verified to work.

coon42 avatar Feb 19 '22 16:02 coon42

Does it make sense to make this the default config on upstream? Feels like it should be some build option maybe, since nothing else uses it.

reticulatedpines avatar Apr 16 '22 09:04 reticulatedpines

I mainly want to use this to update autoexec.bin via PTP without having to swap my SD card all the time. This works totally fine but not all ptpcam functions are fully tested yet, so I can't tell that it is 100% safe yet.

I agree that having some kind of build option could be a solution here, as PTP gets acticated as soon as ptp.c and ptp-chdk.c are compiled and linked in.

coon42 avatar Apr 16 '22 10:04 coon42