CHDK PTP multiple instances - page 14 - General Discussion and Assistance - CHDK Forum

CHDK PTP multiple instances

  • 180 Replies
  • 74072 Views
Re: CHDK PTP multiple instances
« Reply #130 on: 17 / December / 2013, 07:44:55 »
Advertisements
For my record [and future testing] - here's an attempt to document a response to my own query:

can that initiator be the last "command" in the script [just before it ends] ? what is it ?  ::)

then basing my conclusion [largely] on:

...
Using this setup and the switch closed,   I was able to connect to my camera with CHDKPTP,  go into shooting mode and issue a "shoot" command.  With USB Remote enabled and sync enabled,  this caused the picture shooting process to start but then wait on the USB 5V signal.  I opened the switch and the picture taking process completed immediately.  I was able to continue issuing commands to the camera - all I had to do next was make sure I closed the switch before the next shot.
Using your pictured setup,  you would have to make a ptp connection to each camera and issue shoot commands to each over ptp.   If your microcontroller then opened the 5V line,  all cameras would shoot at exactly the same time.   Which I believe is exactly what you are looking for!
...

[my] Conclusion:

since, in my newly stated [zero arduino / zero FET switch] scenario http://chdk.setepontos.com/index.php?topic=8769.msg107988#msg107988 at point (iii) the usb hostcontoller data connection has been removed then [obviously] a chdkptp "shoot" command cannot be sent to [any] camera to:

you need to initiate the shot somehow so that the cameras all get to the point in the shooting sequence where they wait for USB power to go away in step (iv).

Therefore, for testing, I will assume [currently without confidence unless informed otherwise] that a "shoot" command [as the last code line in the chdkptp initiated script, running on all cameras (before script termination) will:

"initiate the shot somehow so that the cameras all get to the point in the shooting sequence where they wait for USB power to go away in step (iv)"

[step (iv) being the point when the mains electricity to the powered usb hub network is switched off]
[correct]
Ported :   A1200    SD940   G10    Powershot N    G16

Re: CHDK PTP multiple instances
« Reply #131 on: 17 / December / 2013, 11:40:58 »
Thanks - suspicion is the voltage decay [when the mains goes off] might be 'all-over-the-place' [both time & location] with this method [with transformers and wot not in the hubs].
 

Re: CHDK PTP multiple instances
« Reply #132 on: 17 / December / 2013, 12:25:33 »

Re: CHDK PTP multiple instances
« Reply #133 on: 17 / December / 2013, 14:27:15 »
Ok,

since it's so close to Christmas, what say you all we have a poll ? (,[the winner [,(might),] get me to adopt the majority format],)

1.=> most obnoxious format...4. => least obnoxious format

1.
Thanks - suspicion is the voltage decay [when the mains goes off] might be 'all-over-the-place' [both time & location] with this method [with transformers and wot not in the hubs].

2.
Thanks - suspicion is the voltage decay (when the mains goes off) might be 'all-over-the-place' (both time & location) with this method (with transformers and wot not in the hubs).

3.
Thanks - suspicion is the voltage decay, when the mains goes off, might be 'all-over-the-place', both time & location, with this method ,with transformers and wot not in the hubs.

4.
Thanks - suspicion is the voltage decay (when the mains goes off) might be 'all-over-the-place' , both time & location, with this method [with transformers and wot not in the hubs].

 :xmas
« Last Edit: 17 / December / 2013, 16:09:46 by andrew.stephens.754365 »

Re: CHDK PTP multiple instances
« Reply #134 on: 17 / December / 2013, 21:06:19 »
Ok,

since it's so close to Christmas, what say you all we have a poll ? (,[the winner [,(might),] get me to adopt the majority format],)

1.=> most obnoxious format...4. => least obnoxious format

 :xmas

Why not just "Hack the USB Hubs" and add a "Universal" format  as option #5.

See Post #53 & http://chdk.setepontos.com/index.php?action=dlattach;topic=8769.0;attach=9079

The basic concept here is a ribbon cable from a suitable controler such as a,
PC, Microcontroler, hex-switcher, etc. etc, is run along with each USB "Hacked-Hub",
preferably wired as dasy chain.

This should work with 4-port, 7-port, 8-port, 10-port and 16-port-hubs.
With my 4-port and 10-port hubs it is easy to unsolder the USB-Out connector
+ 5 volt pin and/or cut the PCB tracks.

I have noted that some USB programs report the current supplied to Canon P&S as less than 2 ma.
HC-Cmos  logic gates can source or sink up to 25ma. i.e HEAPS of spare switching capacity at Nano second
switching speeds. Up to 127 Cameras are supported by a 6-bit[+a 3-bit complement] bus.

By "Universal" I mean that this hardware scheme can have these operating modes [!0-Port USB Hub is used for this example]:-

1/ PTP-WRITE Mode .........   Shoot a single , PTP, selected camera.
2/ PTP-READ   Mode ..........  Download a single, PTP, selected camera.
3/ Sync ALL    Mode ..........  Shoot ALL Cameras at the same time.
4/ Delayed Sync Mode ....... Shoot ALL Cameras, in HEX order, but with a time delay between each camera.
5/ A 1 of 10 Decoder has 11 STATES, the 11 th is the OFF MODE !!!.

Makes use of CHDK PTP by "AUTO Connecting" to each camera in PTP-READ or PTP-WRITE modes.
NO complicated LibUSB Windows PC hacking is needed or required ALL the "Software Hcking" is now
done by  Standard an off the shelf Hardware, mounted on vero boards, and some IDC conneced USB "Hacked Hubs"

CHDK PTP is also "AUTO Diconnected", by WW's software features. i.e. into the "SYNC" Modes.

A 1 of 10 [partial] block Logic state diagram is attached, note that I now have all the components,
BUT I sill have not yet built or tested the USB "Hacked-Hub" concept, I am still busy with the Ixus 240 porting.

This "Scheme" has 22 "States" this is acheiced by additional Exclusive-Or gates at each output.
Hence 10 PTP-Reads, 10 PTP-Writes, OFF x2, SYNC, and Delayed SYNC or 24 states in total.

Note that a 1 of 8 Decodrer is much more flexible, and a suitable as a "Universal" scheme.

H-H
Happy X-mas and Happy Hacking.
« Last Edit: 17 / December / 2013, 22:06:14 by Hardware_Hacker »

Re: CHDK PTP multiple instances
« Reply #135 on: 18 / December / 2013, 12:06:01 »
Well H-H, I see [like me] you find some use for the [] brackets [I suspected you had class].

Due to other [seeming] lack of enthusiasm for my poll - it is now closed, with no change to the [ ;)]

More seriously, i'm intrigued by your approach - i'm going to dust down my "Digital Computer Electronics An Introduction to Microcomputers Second Edition, Seventh Reprint 1986, Albert Paul Malvino" [if I can find all the pages..it was paperback] and see if I can't figure something out.

There's also some vague recollection about Karnaugh maps and State Diagrams [and double sided Laplace transforms or something] coming to mind which I never understood either.

Even better - any chance you can post a detailed PDF of just how to get this baby up and running?

After all, it is that time to wish:

on earth peace, good will toward men[apart from those in the NSA and some others]

I wonder if they'll be able to read that [ I can feel the beginnings of another Christmas "poll" coming on]..I also think I can hear helicopter blades approaching  :o

Re: CHDK PTP multiple instances
« Reply #136 on: 18 / December / 2013, 12:51:39 »

Quote
Is SDM open source, too?

Of course, under the terms of the GPL licence it is obliged to be    .... apart from any other considerations.

Hello, I tried to put my hands onto the open SDM source code by contacting microfunguy, yet no success. Did someone ever get the open source during the last years? If so, could someone tell me when and how?

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: CHDK PTP multiple instances
« Reply #137 on: 18 / December / 2013, 13:22:20 »
No chance. SDM is an one man show.



Da bewegst du eher einen störischen Esel.  ;)
CHDK-DE:  CHDK-DE links

Re: CHDK PTP multiple instances
« Reply #138 on: 18 / December / 2013, 13:32:30 »
I can't believe that. David stated here he regards the code to be GPL. It is based on the work of others. I can't believe he doesn't speak the truth here in public.No, I suppose he is off for holiday or something like that.

I just wanted to have a pre-look before I get the code from him. David, are you out there? :-)

Re: CHDK PTP multiple instances
« Reply #139 on: 18 / December / 2013, 14:18:29 »
David stated here he regards the code to be GPL. It is based on the work of others. I can't believe he doesn't speak the truth here in public.

Absolutely correct
I could comment further on that but frankly cannot be bothered.

As mentioned in the last email (that you did get) I previously sent the code twice and you say you did not receive it.

It is probably lurking on your system somewhere.

I will email you again .

David

 

Related Topics


SimplePortal © 2008-2014, SimplePortal