Lens firmware, serial communication, Dandelion, etc...

Wifi, USB, GPS, Grips, Mics, Ext Power, Lens, Flash

Re: Lens firmware, serial communication, Dandelion, etc...

Postby coderat » Fri May 03, 2013 5:59 am

You are right. I just avoid to use logic analyser, because it is too expensive for me, even to rent.
Oscilloscope is nice tool :)
coderat
Core Developer
 
Posts: 2283
Joined: Fri Apr 26, 2013 10:21 am
Been thanked: 450 times

Re: Lens firmware, serial communication, Dandelion, etc...

Postby leegong » Fri May 03, 2013 7:15 am

leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Lens firmware, serial communication, Dandelion, etc...

Postby coderat » Fri May 03, 2013 5:22 pm

coderat
Core Developer
 
Posts: 2283
Joined: Fri Apr 26, 2013 10:21 am
Been thanked: 450 times

Re: Lens firmware, serial communication, Dandelion, etc...

Postby coderat » Sat May 04, 2013 9:31 am

Russian guy who produces dandelion is:
http://filmprocess.ru/
http://filmprocess.ru/nikon_spec.htm
He said he discussed it in forum before. From there I see there are several more commands in Lens interface that you didn't identify:
$XX get confirmation status of focus
$YY tell lens EV step 1/2 or 1/3
$ZZ apperture set
EDIT:
$TT set focus confirmation point offset at least -20...+20, may be wider
$SS get focus confirmation point offset

I expect last to be set in Lens each time Body detects lens with specific ID was mounted. This setting is not permanent. Cam could not program Lens EEPROM, probably because it doesn't provide write-voltage-level.
coderat
Core Developer
 
Posts: 2283
Joined: Fri Apr 26, 2013 10:21 am
Been thanked: 450 times

Re: Lens firmware, serial communication, Dandelion, etc...

Postby leegong » Sat May 04, 2013 9:37 am

leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Lens firmware, serial communication, Dandelion, etc...

Postby leegong » Sat May 04, 2013 10:59 am

leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Lens firmware, serial communication, Dandelion, etc...

Postby coderat » Sat May 04, 2013 11:07 am

coderat
Core Developer
 
Posts: 2283
Joined: Fri Apr 26, 2013 10:21 am
Been thanked: 450 times

Re: Lens firmware, serial communication, Dandelion, etc...

Postby ubmtdc » Tue May 07, 2013 10:40 am

Maybe it is a good idea to share the information you found to see what is still open...

Have you read the information in the french thread from a german guy (especially byte positions 0x0d, 0x10 and 0x19)?

"Hi,

I've found this intersting forum because of the link to my website. (LensID information) [2]
Since I don't know much french I try in english, I hope some can read it ;-)
I maintaing a big list called extended LensID, it's use is to identify various CPU lenses exact
and to differenciate between Nikkors and 3rd party lenses. This can't always be done by focal length,
take the 12-24/4 as an example.
Seems to some new research on Nikon CPUs and lens data transferred to the camera.
I did some research some time ago with the varous patent info published by Nikon.
I also read some lens data with the help of an oscilloscope to find the LensID and fix
information that classifies a lens. This is mainly info that doesn't change with TC's and zooming.
This info and even more is recorded in EXIF makernote tags, and now used by some poplar EXIF readers.
The info I use is coded at addresses (0x12 to 0x18) the the bytes have following meaning:
ADR    NAME              DESC
0x12   LensID            An unique ID to identify a Nikkor lens (misused by some 3rd party lenses)
0x13   AppStops          The number of aperture stops a lens has, coded in 1/12th steps
0x14   FocLengthShort    Focal length on the short (wide) zoom end, coding can be found in [1]
0x15   FocLengthLong     same for the long (tele) end
0x16   MaxAppShort       Max apperture value on the wide side, coding see [1]
0x17   MaxAppLong        same for the long (tele) end
0x18   MCU_Version       This byte identifies the CPU chip. One chip was used for up to 4 lenses in
                                       the beginning of the AF aera. The lens is selected by bridges on the flex board.                     
Actual focal length is transmitted in 0x10 and the effective apperture is at 0x19.
With 'D' lenses the distance information is transmitted in byte 0x0D, coding also in [1]
I you have a look on the table containing the lensdata posted at this site [3], you find this correlation. (image below)
If you want to make 'P' chips you have to collect much more data and examine the data of 'P' lenses.
Then you have to find a suitable uC, a PIC with SPI may do the job, but I don't know.
The hardest part is to get your uC connected. Contact blocks are not easy to get ...
I hope I could help you a bit. Maybe you have some lenses missing on my list [2], so pleas help
me to fill the gaps.
  Robert

[1] http://members.aol.com/khancock/pilot/nbuddy/
[2] http://www.rottmerhusen.com/objektives/ … party.html
[3] http://www.nikonpassion.com/modules/sma … ?itemid=83"

Furthermore there was a picture somewhere in a forum which might be interesting. It can be found here:
http://imageshack.us/a/img801/9399/indexphpvs.jpg
ubmtdc
 
Posts: 10
Joined: Fri Mar 29, 2013 10:30 am
Been thanked: 0 time

Re: Lens firmware, serial communication, Dandelion, etc...

Postby ubmtdc » Tue May 07, 2013 10:41 am

ubmtdc
 
Posts: 10
Joined: Fri Mar 29, 2013 10:30 am
Been thanked: 0 time

Re: Lens firmware, serial communication, Dandelion, etc...

Postby ubmtdc » Tue May 07, 2013 10:58 am

ubmtdc
 
Posts: 10
Joined: Fri Mar 29, 2013 10:30 am
Been thanked: 0 time

PreviousNext

Return to External Hacks

Who is online

Users browsing this forum: No registered users and 2 guests