CHDKPTP - PC Remote Control Performance Analysis - page 11 - RAW Shooting and Processing - CHDK Forum supplierdeeply

CHDKPTP - PC Remote Control Performance Analysis

  • 465 Replies
  • 132309 Views
Re: CHDKPTP - PC Remote Control Performance Analysis
« Reply #100 on: 09 / September / 2012, 11:51:53 »
Advertisements
Trying to edit noobie lua code in Notepad is quite a chore.
I don't think I would have been able to complete my original camera ports on Windows without Notepad++.  The integrated split screen & diff compare function makes a huge difference when comparing files!!

Like reyalp, I do most work now with vim but when I get stuck,  I run Notepad++ on Linux under Wine just for the dual window compare function.

It also does Lua syntax highlighting and a ton of other nice things - in addition to being free.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline SticK

  • *****
  • 779
Re: CHDKPTP - PC Remote Control Performance Analysis
« Reply #101 on: 09 / September / 2012, 13:18:32 »
Thanks for the tip // I will definitely look into it.

*

Offline reyalp

  • ******
  • 14118
Re: CHDKPTP - PC Remote Control Performance Analysis
« Reply #102 on: 09 / September / 2012, 15:21:26 »
Quote "I'm not interested in writing one-off hacks just to move your project forward."

Mmm .. that hurts // I feel even more guilty for asking functionality from you so I will try to express what I've explored earlier in another way.
Don't feel guilty about asking, just don't expect me to do it ;)

I'm happy to get feature requests and bug reports, but please understand many of them will just be filed away to be addressed at some time in the future.
Quote
Would you consider the piece you wrote a one-off hack exclusively for me and not something you could have basically ready to implement in a future version you talk about, or even include it in your standard distribution for folks to use right away?
The dcimdl snippet I wrote may evolve into something useful I'll include in the distribution, though I mostly did it to try to illustrate how you can solve this kind of problem for yourself in the future.

When you say something like
Quote
To test that I do need the single call that does everything (ie shoot & transfer) and it does not have to be elegant or generic // it just has to work.
I'm likely to say "well then, go write it yourself"...

Same goes for fudging the real vs market ISO stuff. If I come up with a generic way that is accurate across all the cameras, then I'll add it (time permitting). If it requires each user generating a spreadsheet and entering it in the code, I probably will not.

In these situations, I will try give you the information you need to write your own one-off hack, but that  won't extend to writing/testing every line of code.
Quote
I hope ... do these requests (shoot, transfer, clean up chdkptp GUI, etc) not fit in??
Sure, most of these things would be good to do eventually. The GUI in particular has grown out of some proof of concept code I threw together to develop the live view protocol. I have some ideas about how it should be re-designed, but that will take time. I label current chdkptp builds as "alpha" or even "pre-alpha" because it really is unfinished. I try to keep the existing functionality usable, but there's a lot to do.
Quote
It's a horrendous job, requiring shooting images, putting them into an editor, finding the aperture location and iterating the alignment settings.  It can easily take a whole day.   Do you see where I'm going? ...  a reticle crosshair with a circle target in the center of the liveview with a user-defined size, black, white, XOR, with crosshair size settable independently of circle diameter // pushon // pushoff // and my instrument would be realigned in under an hour.  That to me would be a personal request.
I certainly wouldn't write these for you, but again, chdkptp is designed to be extensible. I recognize that a lot of people who want remote control capability want it for unique applications, the idea is that it should serve as a framework each user can customize if they are willing and able to do so.
Don't forget what the H stands for.

*

Offline nafraf

  • *****
  • 1308
Re: CHDKPTP - PC Remote Control Performance Analysis
« Reply #103 on: 09 / September / 2012, 16:05:40 »
Like reyalp, I do most work now with vim but when I get stuck,  I run Notepad++ on Linux under Wine just for the dual window compare function.
Have you tested meld? It run in Linux, Unix, and windows.


*

Offline SticK

  • *****
  • 779
Re: CHDKPTP - PC Remote Control Performance Analysis
« Reply #104 on: 09 / September / 2012, 16:07:20 »
Quote "though I mostly did it to try to illustrate how you can solve this kind of problem for yourself in the future."

Yes thanks, that really helps a lot.  I can go from here with the odd question if I get stuck.  I am using Notepad++ suggested by waterwingz // it's very good.

Quote "// it just has to work."
Quote "I'm likely to say "well then, go write it yourself"..."

Putting the load on you was not what I meant.  I am looking for a GO/NOGO for the *entire* architecture using the S90 (still in camera form) and that is slated for testing as soon as I can get to it: shoot-transfer.  It means a crude code to test the imaging architecture is adequate (very complex instrument, S90 camera, CHDK, CHDKPTP).  High-speed direct file transfer of last file is not necessary for acceptance testing.  If a non-elegant crude version (indirect transfer as here) would work (no reason why not) and allow me to do instrumentation applications coexistence testing next, then there is no doubt in my mind future elegant CHDK++ solutions will work too, and with more performance and capabilities to boot I'm sure.  I don't know what's going to happen with interactions yet, but if it turns out OK and I get wowed by CHDK++ in the instrumentation environment (I will let you know), then I will put intense care and effort to extract the CCD.  That will not be easy because the lens assembly if far more complex than the S50, and I am not looking forward to it // it will be a challenge I don't really want to do but have to if I want the imaging sensitivity in and the scientific goals in the future that the new assembly will bring.  So if successful at the end and the raw CCD works, then it's huge for CHDK++.  And finally, because I myself was unable to even get the simplest shoot-transfer version working, you provided the right amount of code to get all I need up and running.

I apologize for the misunderstanding.  That's what I meant by "it just has to work."

Re: CHDKPTP - PC Remote Control Performance Analysis
« Reply #105 on: 09 / September / 2012, 16:45:21 »
Have you tested meld? It run in Linux, Unix, and windows.
I already have it installed on my Linux box but forgot about it.  Won't forget again - looks nicer that Notepad++ for file comparison and merging. Thanks.

However, I probably won't use it on Windows. Too many dependencies need to be installed first - if you can believe the irony.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline SticK

  • *****
  • 779
Re: CHDKPTP - PC Remote Control Performance Analysis
« Reply #106 on: 09 / September / 2012, 17:46:01 »
Starting with empty DCIM, this works (although I have not examined EXIF yet -- should be OK).  I was able to take two shots in row and the result was OK.  I am temporarily doing these tests on the SX110.

Code: [Select]
function myshoot(tv, av, sv, destdir)
  cli:execute('shoot -tv='..tv..' -av='..av..' -sv='..sv..'')
  dcimdl(destdir, true, false)
end

The only apparently innocuous gremlin is that the Canon is not informed of the deleted file.

If I switch to play mode I get the BIG ? and eg 3/3 117-0027 Unidentified image, even though there are no images on the SD.

117CANON gets emptied OK and remains, however, CANONMSC/MD117.CTG is there. 

I have to delete both directories by hand and then when I switch to play mode, I do get the expected "No Image."

Is your rm command capable of deleting directories?

*

Offline reyalp

  • ******
  • 14118
Re: CHDKPTP - PC Remote Control Performance Analysis
« Reply #107 on: 09 / September / 2012, 18:17:36 »
If I switch to play mode I get the BIG ? and eg 3/3 117-0027 Unidentified image, even though there are no images on the SD.
Yes, this is a known issue that applies to deleting files from CHDK. The "missing" images will go away the next time you reboot.

Quote
117CANON gets emptied OK and remains, however, CANONMSC/MD117.CTG is there. 

I have to delete both directories by hand and then when I switch to play mode, I do get the expected "No Image."
I don't know what the implications / possible side effects of deleting the CANONMSC and it's contents are.

Quote
Is your rm command capable of deleting directories?
Yes. By default (without -nodirs), it will delete the directories recursively, including any files. Suggest
help rm
and
rm -pretend ...

If you want to delete everything under DCIM (CANONMSC and all the NNNCANON) directories, then you could just use
rm -skip_topdirs DCIM
Don't forget what the H stands for.


*

Offline SticK

  • *****
  • 779
Re: CHDKPTP - PC Remote Control Performance Analysis
« Reply #108 on: 10 / September / 2012, 01:25:35 »
Quote "I don't know what the implications / possible side effects of deleting the CANONMSC and it's contents are."

I am pretty sure part of its job is to flag downloaded files for Zoombrowser.  By the way your English is amazingly good compared to a lot of what I've seen these days ... a nice addition though is: it's is a contraction of it is.  On the other hand its is the possessive case version.  Ironically, its is only instance of a possessive case that does not use the apostrophe, as for the common example reyalp's great code.

Quote "If you want to delete everything under DCIM (CANONMSC and all the NNNCANON) directories, then you could just use rm -skip_topdirs DCIM"

This works perfectly.  If I switch to PLAY after a shoot-transfer I get "No image" immediately.  Thus Canon creates the 2 directories each time on shoot.  So this is fine now on the SX110.  Tomorrow I look at S90 with this code.

Re: CHDKPTP - PC Remote Control Performance Analysis
« Reply #109 on: 10 / September / 2012, 08:50:09 »
By the way your English is amazingly good compared to a lot of what I've seen these days ... a nice addition though is: it's is a contraction of it is.

 :D

That is priceless, what makes you think English (or rather American 'English') is not Reyalp's native language ?

Do not be too critical, recognise these little errors ?  :-

"Could I make an case for relevance?"
"you are making remote control app"
"that is supposed offer similar objectives"
"have gotten used to"  (acceptable as American 'English' I guess)
"I figured there could be some kind limitations like these"


Anyway, before you get too engrossed with this project, what makes you think you can remove the CCD and solve the electronic and software problems ?


 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal