so the mc:connect call is wrapped in an anonymous function that pcall can call
.....
So back to sync (sorry for jumping around so much), I'm trying to trigger the power sync by plugging 12 non-powered USB hubs with 6 cameras each (a total of 72 cameras) into one powered hub and cutting the power there. This seems to be working fine, all of the cameras take a picture with perfect sync, but when I try to reconnect to them I run into trouble. I'm not connecting with a list which might be part of the problem.
About 35% of the cameras reconnect fine but the rest fall victim to driver crashes.
I get the message "USB device not recognized", and I have to restart my computer to fix it.
Any ideas?
Re:- I get the message "USB device not recognized", and I have to restart my computer to fix it. & Any ideas?
Ref:- I'm trying to trigger the power sync by plugging 12 non-powered USB hubs with 6 cameras each
(a total of 72 cameras) into one powered hub and cutting the power there.
My Guess for Usb-2 & Usb-3:-
a/ Is that you have not "modified" the (up-stream) powered hub correctly.
b/ Is that you have not "modified" the (down-stream) un-powered hub's correctly.
c/ Your host computer and your powered hub "should" have some sort of "current over load" protection in-built.
d/ What is most probably happening is that when attempting to sync the 72 cameras is that the "current over load" protection,
usualy in the form of a a poly-fuse, is then triped thus disconecting the "synced-Usb" chain of devices.
e/ The "poly-fuse" or similar "current over load" protection (thermal) devices have a in-built time delay before auto-reseting.
f/ The 72 cameras will attempt to draw a small current from the Usb +5 volt un-powered hubs usually in the order of 1-2 ma.
Any Usb-hub modifications should also allow for a minimium safety margin of 100x (1-2ma.)
g/ For all Usb-hubs the +5 volts, and associated filter capacitors, MUST, always be supplied/maintained to the Usb-hubs control IC's.
h/ The +5 Volt filter capacitors on the +5 Volt Usb-female-connector pin's can/should be removed or by-passed just by cutting the associated
PCB-track's
Also note that "synced-Usb" by "switching" the +5 volt Usb supply is not part of the Usb specifactions.
CHDK is using/modifing the Usb "hot-plug" feature for "synced-Usb".
If you have the nessary skills you can modify the Usb-hubs.
If you dont have the nessary skills you can modify the Usb to camera cables as per the "standard" CHDK method.
OR ... Edit #1 (see the attached files)
You if you dont want to modify the Usb to camera cables can make/modify a Usb Male to Female adapter's (72x).
Edit #1 USB adapters can be "cut open" and the internal "PCB" +5 volt track is then cut.
H-H
Use USB Tree View. USB Device View and USB Log View, software, for a windows based computer to then monitor
the "synced-Usb" chain of devices.