Forgot Password
Pentax Camera Forums Home
 

Reply
Show Printable Version 4 Likes Search this Thread
08-07-2009, 11:31 PM   #181
Pentaxian
Class A's Avatar

Join Date: Aug 2008
Location: Wellington, New Zealand
Posts: 11,251
QuoteOriginally posted by tr13 Quote
We completely forget about Cam-Control_V2.dll
This post about the software using Cam-Control_V2.dll for the K10D mentions makc (penta-club.ru forum) as the author. Have you tried contacting makc? Might be worth it to obtain some knowledge about Cam-Control_V2.dll.

08-08-2009, 12:52 AM   #182
Veteran Member




Join Date: Jul 2009
Location: Russia
Posts: 343
Original Poster
No, I have not tried and you must remember that program is quite old.
He also managed to use three or four functions only (incuding connecting and disconnecting from camera).
If we'll ask even for such simple things how we could use other, more complicated and hard to understand ones :-) ?
08-08-2009, 01:38 AM   #183
Veteran Member




Join Date: May 2008
Location: Russia, Siberia, Novosibirsk
Posts: 323
About makc program.

It could not switch debug off on K100D Super. Also it turned first four options in debug menu as I remember (DEBUG MODE, CARDDOOR OPEN, WRITE CF VNDR, SCRIPT EN MODE). We tested different parameters for debug-on in DLL's function, but none worked for K100D SUper to switch it off. Don't know why.

Also, if one do not know - you can press [MENU] button in debug menu, to see second screen with other menu items.
There are EEPROM, CPU ROM, DSP ROM, AF PINT DISP functions there.
08-08-2009, 01:47 AM   #184
Veteran Member




Join Date: May 2008
Location: Russia, Siberia, Novosibirsk
Posts: 323
According to Wikipedia:

$ - is string variable
% - int variable

08-08-2009, 02:06 AM   #185
New Member




Join Date: Mar 2008
Posts: 19
You can use one letter variable :

%C=5
COLOR %C

No need to use ; to end lines
08-08-2009, 02:29 AM   #186
Veteran Member




Join Date: Jan 2009
Location: Budapest
Posts: 821
No matter how I try (press menu, open card door, closed card door, etc), this doesn't work at all on K-m with 1.10 fw. Nothing happens (except it shows the fw version), no debug menu entries at all.
Are you sure 464 is for K-m and not K2000? They have different fw.

Code:
Km v1.10	MODSET.464
[DEBUG_MODE EN]
[SCRIPT_EN_MODE EN]
[OPEN_DEBUG_MENU]
[SW_DEBUG_MENU EN]
08-08-2009, 02:40 AM   #187
Veteran Member




Join Date: Jul 2009
Location: Russia
Posts: 343
Original Poster
QuoteOriginally posted by simico Quote
No matter how I try (press menu, open card door, closed card door, etc), this doesn't work at all on K-m with 1.10 fw. Nothing happens (except it shows the fw version), no debug menu entries at all.
Are you sure 464 is for K-m and not K2000? They have different fw.

Code:
Km v1.10	MODSET.464
[DEBUG_MODE EN]
[SCRIPT_EN_MODE EN]
[OPEN_DEBUG_MENU]
[SW_DEBUG_MENU EN]
Use empty formatted flash card, with only one file on it.
Leave one string only - like [OPEN_DEBUG_MENU].
Try turning on with Menu button pressed. Try open CF door.


Last edited by tr13; 08-08-2009 at 02:47 AM.
08-08-2009, 02:47 AM   #188
Veteran Member




Join Date: Jul 2009
Location: Russia
Posts: 343
Original Poster
QuoteOriginally posted by Zebooka Quote
About makc program.
It could not switch debug off on K100D Super. Also it turned first four options in debug menu as I remember (DEBUG MODE, CARDDOOR OPEN, WRITE CF VNDR, SCRIPT EN MODE). We tested different parameters for debug-on in DLL's function, but none worked for K100D SUper to switch it off. Don't know why.

Also, if one do not know - you can press [MENU] button in debug menu, to see second screen with other menu items.
There are EEPROM, CPU ROM, DSP ROM, AF PINT DISP functions there.
Are you related to makc developments?
[MENU] in debug menu on GX20 is not necessary, as you could use cursor to move between screens.

I am interested in lens eeproms.

Another info - I don't see any changes upon AF adjustments in camera EEPROM dumps (see manu item in debug menu).
08-08-2009, 02:58 AM   #189
Veteran Member




Join Date: May 2008
Location: Russia, Siberia, Novosibirsk
Posts: 323
QuoteOriginally posted by tr13 Quote
Are you related to makc developments?
[MENU] in debug menu on GX20 is not necessary, as you could use cursor to move between screens.

I am interested in lens eeproms.

Another info - I don't see any changes upon AF adjustments in camera EEPROM dumps (see manu item in debug menu).
I was the one, who tested his program on K100D Super and found solution how to exit debug mode


I have *ist Ds, and two K10D. No GX20/K20D. So my notes about [MENU] button in debug menu apply to yearlier cameras.

And yes, you are right - LENSEEP.ROM doesn't change when AF is adjusted. I've tested this allready with *istDS (few month ago). But it changes when different lens are attached. So I thing this are some values from LENS micro chip. Like aperture values range, focal length, lens id etc.
This could be very usefull. To change lens ID for thrid party lenses, to fool K20D, K-7 and allow lens correction for such lenses.

__________________________

PS:
I could not print integer values (see example below - with %C). I could not summ %C with 1 and setup it into new value (old value is assigned).
IF-ELSE works. I've tested == for comparision.
08-08-2009, 03:35 AM   #190
Veteran Member




Join Date: Jul 2009
Location: Russia
Posts: 343
Original Poster
No I mean xxx.eep file. It is dump of camera eeprom (and you mention dump of lens rom file).
I don't see any changes in it after AF adjusting.
08-08-2009, 04:08 AM   #191
Veteran Member




Join Date: May 2008
Location: Russia, Siberia, Novosibirsk
Posts: 323
SO!

This works:
%A = 1
%B = %A
%B += 1

But this doesn't:
%B = %A + 1

Round brackets ( and ) cause syntax error.

Also I'm unable to print %A or %B value.

In IF i could compare %B with ==, >, < operators

UPDATE:
+=, -=, *= and /= work as expected
Negative values are also allowed.

Boolean operators: ==, !=, >, <, <=, >=

; - comment line

UPDATE 2:

%A = 1
WHILE %A < 3
{
PRINT "Step"
%A += 1
}

Last edited by Zebooka; 08-08-2009 at 04:50 AM.
08-08-2009, 05:12 AM   #192
Veteran Member




Join Date: Jul 2009
Location: Russia
Posts: 343
Original Poster
Try use C style as I see %x %o %d in file :-)
Also #DEFINE could be used
08-08-2009, 05:23 AM   #193
Veteran Member




Join Date: May 2008
Location: Russia, Siberia, Novosibirsk
Posts: 323
%x, %o and %d could be just for printf function
I also see #DEFINE
08-08-2009, 06:02 AM   #194
Pentaxian
Class A's Avatar

Join Date: Aug 2008
Location: Wellington, New Zealand
Posts: 11,251
QuoteOriginally posted by Zebooka Quote
I could not print integer values (see example below - with %C).
Have you tried variables without "%", i.e., "A" (floating point) instead of "A%" (integer only)? Might make a difference, but I doubt it. I also doubt that
Code:
PRINT "";A% 
PRINT ""A%
will make a difference.

If the function "STR$" were available you could convert a numeric variable into a string before printing.

BTW, could it be that the "WAIT" command works like the C64 BASIC command "WAIT"?
08-08-2009, 06:12 AM   #195
Veteran Member




Join Date: Jul 2009
Location: Russia
Posts: 343
Original Poster
Use
PRINT "A=%d" %A

works perfectly!!!


As for WAIT command, it is possible, but
WAIT 10 also works, for example.

We need to understand how GOTO and GOSUB work, as they are necessary for complicated scripts.

Last edited by tr13; 08-08-2009 at 06:27 AM.
Reply

Bookmarks
  • Submit Thread to Facebook Facebook
  • Submit Thread to Twitter Twitter
  • Submit Thread to Digg Digg
Tags - Make this thread easier to find by adding keywords to it!
camera, check, dslr, firmware, fr, ida, information, k-x, pentax, photography, pm, post, progress, script, site, software, update, ver, version

Similar Threads
Thread Thread Starter Forum Replies Last Post
DFS hack eccentricphotography Pentax DSLR Discussion 24 10-12-2010 11:08 AM
Yet another hack job -- OM to PK ?? RioRico Pentax SLR Lens Discussion 15 10-07-2010 07:49 AM
K20D Firmware Ver - Pentax Web Site Ver? ChipB Pentax DSLR Discussion 2 02-23-2010 04:14 PM
Teleconverter hack? Raptorman Pentax SLR Lens Discussion 4 01-20-2010 03:51 AM
News Site News and Site Suggestions hidden from guests Adam Site Suggestions and Help 0 11-30-2009 12:38 AM



All times are GMT -7. The time now is 01:50 PM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top