A630 remote function issue - page 2 - General Help and Assistance on using CHDK stable releases - CHDK Forum

A630 remote function issue

  • 27 Replies
  • 16382 Views
*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: A630 remote function issue
« Reply #10 on: 03 / September / 2008, 18:37:25 »
Advertisements
HOLY COW! this is madness. this is ewavr. this is magic :D
how did you accomplish the bidirectional thing? i mean i see your svn log, but i still dont get it :D
applause!

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: A630 remote function issue
« Reply #11 on: 04 / September / 2008, 15:07:50 »
how did you accomplish the bidirectional thing? i mean i see your svn log, but i still dont get it :D
applause!

Nice progress indeed...even though I'm unable to view or dl the video. To me it looks like he duplicated a part of Canon's USB code and slipped in some custom code to interface it to the keyboard.

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: A630 remote function issue
« Reply #12 on: 04 / September / 2008, 15:17:03 »
maybe you tried to download the avi directly? i made that mistake myself. click on the link and then on the following russian site klick on the red button.

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: A630 remote function issue
« Reply #13 on: 04 / September / 2008, 15:29:25 »
maybe you tried to download the avi directly? i made that mistake myself. click on the link and then on the following russian site klick on the red button.

I did... but it's not working. Looks like my ff starts a totem plugin which says it only gets a text file...

*

Offline Hacki

  • ****
  • 359
  • EOS 80D
Re: A630 remote function issue
« Reply #14 on: 04 / September / 2008, 15:34:44 »
totem sucks. use mplayer-plugin.

And to get not completely offtopic: Nice ewavr. I assume such a function is highly platform dependend, and needs ASM skills to implement for other cameras?


*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: A630 remote function issue
« Reply #15 on: 04 / September / 2008, 16:29:35 »
Video is uploaded to zshare: prf1.avi - 3.14MB
Also other video: prf2.avi - 2.21MB - usual USB PTP mode is available in record mode, you can shoot and see (erase, move etc) files in Windows explorer at the same time.

I assume such a function is highly platform dependend, and needs ASM skills to implement for other cameras?

Yes, but this is less complicated than RAW shooting and video bitrate changing - only one function ('SRM' task) in assembly + some magic "how to leave USB to work in record mode".

P.S. CHDK sorces for A710, as usually, http://trac.assembla.com/a710/, PC sources on request (Borland CBuilder 6, but 90% of them is just copy of libusb-win32 examples).
« Last Edit: 04 / September / 2008, 16:38:11 by ewavr »

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: A630 remote function issue
« Reply #16 on: 07 / September / 2008, 06:45:25 »
I tried searching in a570is firmware a bit but failed to find a way to duplicate this...

About half of our ported cameras have the string Usbc20SRM.c or UsbcSRM.c. in them. But the rest of them don't, among those for example a570, a720, s5, ixus70_sd1000. Still, all seem to have SetUSBToDCPMode and SetUSBToPTPMode.
« Last Edit: 07 / September / 2008, 06:48:28 by fudgey »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: A630 remote function issue
« Reply #17 on: 07 / September / 2008, 14:06:36 »
About half of our ported cameras have the string Usbc20SRM.c or UsbcSRM.c. in them.  But the rest of them don't, among those for example a570, a720, s5, ixus70_sd1000.

Indeed... These cameras without SRM task, and I see no trace of it  :(
However, sending data to PC is possible without this task. What for? I don't know (camera state?).

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: A630 remote function issue
« Reply #18 on: 07 / September / 2008, 14:42:05 »
Indeed... These cameras without SRM task, and I see no trace of it  :(
However, sending data to PC is possible without this task. What for? I don't know (camera state?).

Do you think it would be possible to take SRM code from cameras that have it and add it to ones that don't? If all cameras have the necessary USB modes, it would be fair to assume that the SRM code interfaces to that and not directly to HW? Or is it all too deep to follow?

Sending data would be useful for a number of things, such as
- sending images (I know you said it's slow, but for example 3 kB/s transfers about four HQ JPEGs in one hour, already sufficient for some long term timelapse or motion detect setups). Or we could send thumbnails.
- getting output from motion detector, for example to trigger another camera DSLR or a lamp.
- signaling about low battery or low memory.
- creating a hardware watchdog for a remote timelapse/motion detector.
- outputting script console.
- outputting debug console.
and whatever else we have in the feature requests section that requires data or digital output...

(we should have a separate thread for this new USB stuff...we're quite hidden as is).

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: A630 remote function issue
« Reply #19 on: 07 / September / 2008, 19:26:56 »
Do you think it would be possible to take SRM code from cameras that have it and add it to ones that don't? If all cameras have the necessary USB modes, it would be fair to assume that the SRM code interfaces to that and not directly to HW? Or is it all too deep to follow?

Maybe for cameras without SRM task its code is incorporated into other tasks/functions, I will search it.

Quote
Sending data would be useful for a number of things, such as
- sending images (I know you said it's slow, but for example 3 kB/s transfers about four HQ JPEGs in one hour, already sufficient for some long term timelapse or motion detect setups). Or we could send thumbnails.
Not possible. This is not stream: CHDK can fill buffer (1-128 bytes) with data, PC can read it (but CHDK never knows, that these data have been read through to prepare new).
Quote
- getting output from motion detector, for example to trigger another camera DSLR or a lamp.
- signaling about low battery or low memory.
- creating a hardware watchdog for a remote timelapse/motion detector.
- outputting script console.
- outputting debug console.
Maybe this is possible (with some restrictions).

 

Related Topics


SimplePortal © 2008-2014, SimplePortal