A560 PTP in Record mode - General Discussion and Assistance - CHDK Forum

A560 PTP in Record mode

  • 4 Replies
  • 4457 Views
A560 PTP in Record mode
« on: 26 / February / 2012, 17:29:12 »
Advertisements
Didn't get much feedback on other posts, and am willing to solve this myself, just need some more pointers.

Essentially as reported by someone else in July 2011, the A560 has CHDK PTP, but it will never switch to record mode while connected by USB. This seems built into the firmware: even without CHDK during USB mode, none of the buttons work. With CHDK, you can't switch modes or change to record mode. I've tried all the methods suggested. The only thing that sort of works is that you can run "luar post_levent_to_ui(4484)" which unlocks all of the buttons except for the mode button which is what you need.

Where do I start looking to debug this? Or is there no hope for this? Anyone know of other cameras that have had similar issues that were fixed (i.e where do I start looking)

Re: A560 PTP in Record mode
« Reply #1 on: 12 / March / 2012, 15:27:45 »
Anyone?
If anyone reads this, please tell me to:
- ask this in a more appropriate place
- read something
- give up, it's impossible due to HW
- give up, no one is interested

*

Offline srsa_4c

  • ******
  • 4451
Re: A560 PTP in Record mode
« Reply #2 on: 12 / March / 2012, 15:47:49 »
Have you tried it with the unstable/development version of CHDK http://mighty-hoernsche.de/trunk/ ? Also, you could try whether CHDK started via the "Firm update" method acts differently.

*

Offline reyalp

  • ******
  • 14128
Re: A560 PTP in Record mode
« Reply #3 on: 12 / March / 2012, 16:12:16 »
Anyone?
If anyone reads this, please tell me to:
- ask this in a more appropriate place
- read something
- give up, it's impossible due to HW
- give up, no one is interested
- dig into the CHDK code and your cameras firmware dump to figure out what is going on.

Note that this
Quote
This seems built into the firmware: even without CHDK during USB mode, none of the buttons work.
Is totally normal for most (all ?) cameras. Pressing the record button is not expected to switch to record mode when USB is connected. On cameras with a switch rather than a button, it may switch to rec mode but disconnect USB.
Quote
I've tried all the methods suggested.
By this you mean lua switch_mode_usb(1) and lua set_record(1) ?
Don't forget what the H stands for.

*

Offline srsa_4c

  • ******
  • 4451
Re: A560 PTP in Record mode
« Reply #4 on: 12 / March / 2012, 16:54:45 »
For a VxWorks camera, set_record() does the same as switch_mode_usb().
The A560 is VxWorks. But it does have those events that are used in the DryOS version of switch_mode_usb().
0x10a6 (DisconnectUSBCable)
0x10a5 (ConnectUSBCable)
I would try either the post_levent_to_ui() or the post_levent_for_npt() lua functions to "send" these events (couldn't find anything like set_control_event). Followed by an attempt to change modes (like disconnectusbcable->set_record(1) ).

 

Related Topics


SimplePortal © 2008-2014, SimplePortal