nowości od Fingalo-get_power_usb
nowości od Fingalo-pracuje usilnie nad kontrolą aparatu wykorzystując ktrótkie lub długie sygnały (podanie napięcia) na USB-co umożliwi wykorzystanie w wielozadaniowym pilocie i sterowaniu aparatu z kompa:
"Some testing with remote signaling to see if it is possible to make a multibutton control.
I found that the USB signal need to be at minimum 50-60ms in length in order to be detected at all.
Under this length I could not detect any signals.
Also the length varies a lot, when setting a signal 0.2sec long it will be detected between .19 to .23s.
Function get_usb_power will now give how long the USB signal is active. I leave this decoding to the script as I suspect different cameras can give different timing.
This way you can design your own method for timing, even manual 'keying' is possible, a long or short press on the button.
Note: the 'old' is_key "remote" signal still works the same as before.
Difference between get_sub_power and is_key "remote" is that is_key "remote" is activated as soon as USB power is detected but get_usb_power is set when USB power
go low (giving the lengt of the signal).
I used 5 different signal with following timing (seconds).
0.085, 0.21, 0.33, 0.44, 0.60
This way I just get a value (in 10ms counts) for USB signal. It is decoded with the following script:
Code:
@title Multi remote
do
do
a = get_usb_power
until a>0
rem remote button 1
if a>0 and a<15 then
release "zoom_in"
release "zoom_out"
endif
rem remote button 2
if a>15 and a<25 then
press "zoom_in"
endif
rem remote button 3
if a>25 and a<38 then
press "zoom_out"
endif
rem remote button 4
if a>38 and a<47 then
shoot
endif
rem remote button 5
if a>50 then exit_alt
rem show button timecount (used for calibrating the script)
if a>0 then print a
until is_key "set"
end
To calibrate your own timing just use this part of the script to begin with
do
do
a = get_usb_power
until a>0
if a>0 then print a
until is_key "set"
end
This works stable, but the timing is really not what I expected, I thought it should be a 10ms resolution for the USB signal.
I tested by a 5 V signal from the PC's printer port and a program to time the signal to the camera.
- multi remote on s2is, s3is, a610, a620, a630, a640, a710
(I only publish remote supported cams in this release as it is not useful for the other cams.)"
dostępne beta firmwary na stronie Fingalo http://hem.passagen.se/fsmmal/chdk2.html
get_power_usb-multibutton remote
potestowałem sobie tą nową wersję 128
przerobiłem skrypt-bo dobór czasu jak pisze Fingalo do działania multiprzycisków to indywidualna sprawa każdego aparatu-trzeba sobie dobrać samemu (widełki dla parametru a)
@title Multi remote
do
do
a = get_usb_power
until a>0
rem remote button 1
if a>0 and a<200 then
release "zoom_in"
release "zoom_out"
endif
rem remote button 2
if a>200 and a<300 then
press "zoom_in"
endif
rem remote button 3
if a>300 and a<400 then
press "zoom_out"
endif
rem remote button 4
if a>400 and a<500 then
shoot
endif
rem remote button 5
if a>500 then exit_alt
rem show button timecount (used for calibrating the script)
if a>0 then print a
until is_key "set"
end
włączyłem tez dla skryptu Autoboot i Remote enable w menu
podpinałem na zadaną ilość czasu aparat do PC przez usb i wypinałem i patrzyłem co się dzieje
czasami funkcje działały mi OK zoom in działał ,strzelało fotki,zoom out
niestety nie wiem czem czasami skrypt ?zawieszał się?
po wykonaniu komendy zoom in wpinam/wypinam aparat ,a tu wartość "a" się nie pojawia
czasami się pojawia właściwa np 376 ale aparat nie wykonuje "zoom out"
nie wiem czemu-no ale to w końcu alfa wersja ;)
podobno przez port drukarki da się wysyłać definiowane krótkie impulsy 5V
znalazłem jakiś krótki opis http://www.seetron.com/ser_an1.htm
ale jeszcze nie rozgryzłem jak to wykorzystać i sterować aparatem z kompa-precyzyjniej ,a nie wpinając wypinając wtykę
a tu schemat łopatologiczny pilota do naszych Canonów
http://s3users.com/forum/showpost.ph...&postcount=218
może jakiś zdolny elektronik da cynk jak wysyłac krótkie definiowalne impulsy na usb lub przez port drukarki
sterowanie aparatem z komputera
dzięki uprzejmości Fingalo mamy teraz do dyspozycji program do wysyłania krótkich definiowanych sygnałów z LPT do USB i naszych Canonków
(5 przycisków,nie zapamiętuje konfiguracji)
jak ktoś ma lutownicę i trochę zacięcia może się pobawić
połączenia:
wtyk LPT pin 25 (masa) do gniazdka USB na pin 4
wtyk LPT pin 2 (+5V) do gniazdka USB na pin 1
obrazek poglądowy gniazdka USB z przodu tu http://s3users.com/forum/showpost.ph...&postcount=218
program Fingal-a http://hem.passagen.se/fsmmal/CHDK/remote%20utils.zip
(with .net source)
(Copy inpout32.dll to windows/system32) and run the .exe file
osobiście testowałem
i czasami to działa
zdarza mu się wieszać przy zoomie na min lub max
wiesza się mniej jak dochodzimy zoomem krokami używając przycisku StopZ (stop zooming)
być może wersja GrAnda jest stabilniejsza ,może czasy trzeba dobrać lepiej -jeszcze nie wiem
niekórzy szczęśliwcy mogą się cieszyć sterowaniem z kompa programem PSRemote http://www.breezesys.com/PSRemote/features.htm#ps
ale nie rozpoznaje on części modeli (no i nie da się za jego pomocą wykonywać skryptów CHDK ;) )
opis do firmware ALLBEST-a
szperając po forum natknąłem się na trochę większy opis firmware ALLBEST-a
http://chdk.wikia.com/wiki/CHDK_firmware_usage/AllBest
Optyczny zoom w filmach video-skrypt
przerobiłem lekko skrypt GrAnda
teraz można definiować kroki zooma w + i -
rem Author GrAnd/kociałko ;)
rem Enables zoom during video recording on A-series
@title Video with zoom
@param a step zoom+
@default a 7
@param b step zoom-
@default b 7
if a<0 then let a=1
if b>0 then let b=-1
print "Half-press shoot button"
print "to stop video recording"
print ""
get_zoom z
click "shoot_full"
:loop
wait_click
is_key k "zoom_in"
if k=1 then set_zoom_rel a
is_key k "zoom_out"
if k=1 then set_zoom_rel -b
is_key k "shoot_half"
if k=1 then goto "end"
goto "loop"
:end
click "shoot_full"
sleep 2000
set_zoom z
end
!!! Łączenie podwójnego wpisu !!!
PSRemote
http://www.breezesys.com/PSRemote/index.htm
Cam4you remote
http://alkenius.no-ip.org/Cam4you_remote/index.html
GBTimelapse
http://granitebaysoftware.com/Product_gbt.aspx
niestety z jakiś powodów ŻADEN z programów nie obsługuje mojego A710IS
wkurzające są te zagrywki Canona...