[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 389: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Nikon Hacker • View topic - Lens firmware, serial communication, Dandelion, etc...

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

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

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

Postby ztan » Tue Jan 29, 2013 3:39 pm

I'm new to this, having finally moved to digital from film recently. I have been wondering about the body-lens interface.

I installed the latest Dandelion chip onto some of my Zeiss ZF lenses, chip sourced from:
http://store.tagotech.com/product_info.php?products_id=527&osCsid=77e07380d341e05dff1b1cd3f0c08d6e

A good description of the pinout for the interface and use of a TC16a has been written by Olivier Peralis http://www.foolography.com/free-stuff/modify-tc-16a/ with the MCU specified as PD7554

Robert Rottmerhusen has gotten lens data from multiple lenses at: http://www.rottmerhusen.com/objektives/lensid/thirdparty.html
It looks to me that the 8 byte lens ID is coded the following way:
1: Lens ID
2: Number of stops to minimum aperture
3. Focal length at wide end
4. Focal length at tele end
5. Max aperture at wide end
6. Max aperture at tele end
7. MCU version
8. Lens type (00=non-D, 02=AF-D, 06=AF-G, 0A=AF-D,VR, 0E=AF-G,VR)

Installing the Dandelion chip on my ZF lenses allows the following behaviour on my D800:
With aperture control in the lens (default) and AF on (default), the lens works in G type mode and allows focus trapping with the body set to focus priority release. The aperture control ring controls the minimum aperture but does not communicate with the body. I realize some people like using the command dial to control aperture, but I prefer using the aperture ring on the lens.
With the aperture control in the body (Dandelion menu 60), the lens works in D type mode and AF is not able to be activated for focus trapping. I cannot go back to a G type lens without resetting the chip.

The chip defaults to a 45mm f/2.8 lens, looking at EXIF file data, the lens emulates the AF-S 50mm f/1.4 G behaviour by default (lens type A0). When the lens is switched to pass control back to the camera body (option 60 on the Dandelion menu), the lens emulates a 45/2.8 AI-P (lens type 72).

As I'd like to have focus trap enabled by switching AF on as well as controlling my aperture with the aperture ring, I was wondering if it would be possible to modify the Dandelion chip to do this.

Pinout of 5 pin f mount connector is:
a: Vdd
b: P1/P2
c: Serial Clock
d: Serial Data
e: Vss GND

Regarding body-lens communication, there is a serial protocol with some command codes available:

Looking at Nikon F mount patent 4,896,181:
$00: send back focal length (X=0)
$01: send back full aperture (X=1)
$02: send back lens ID of zoom position (X=2)
$0F: send back data (X=F) of zoom position
$10-$FB: undefinded, send back $FF
$FC: send back 2 byte conversion coefficient
$FD: send back 8 byte AF data
$FE: send back 8 byte AE data
$FF: send back data set from X=0 to X=F of zoom position

Looking at Nikon AF-S patent 5,727,241:
$27: send back lens data (40 byte)
$29: send back lens drive limit data (6 byte)
$30: zooming drive
$31: zooming inhibit
$32: af drive
$33: af inhibit
$34: motion compensation drive
$35: motion compensation inhibit

Anyone willing to help out?
ztan
 
Posts: 4
Joined: Tue Jan 29, 2013 1:08 pm
Been thanked: 0 time

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

Postby leegong » Wed Jan 30, 2013 5:27 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 » Wed Jan 30, 2013 6:48 pm

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 » Mon Mar 11, 2013 11:12 pm

Is mapping LENS responses to data stru which is sent to EXPEED , could anybody give me more description of Lens commands specification ?
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 ubmtdc » Fri Mar 29, 2013 10:35 am

Some more background can be found under the follwoing URL: http://forum.nikonpassion.com/index.php?topic=1640.0 (It is french but google may help).

Furthermore there is a code snippet under the following URL: http://roboforum.ru/post82969.html?hilit=nikon#p82969.

I would like to have a dandelion chip which supports autofocus at a TC16A!

Any informations about the codes?
ubmtdc
 
Posts: 10
Joined: Fri Mar 29, 2013 10:30 am
Been thanked: 0 time

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

Postby Vicne » Sat Mar 30, 2013 8:51 am

Vicne
Core Developer
 
Posts: 1730
Joined: Tue Nov 29, 2011 2:30 pm
Been thanked: 167 times

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

Postby leegong » Sun Mar 31, 2013 6:16 pm

Vicne , very nice help , thanks .I have to spend some time digging in lens serial interface , my gut feeling is that hacking lens serial interface in A FW could
add more functions support for ZF lens with the Dandelion chip , a long term goal of course since we have to understand more commands
and responses between lens and camera body .
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 ubmtdc » Sun Apr 07, 2013 10:45 am

...
Several articles have been published by the member "gazalou" but the links are dead. Here again, the wayback machine comes to the rescue, but unfortunately the images are missing:
http://web.archive.org/web/200901312242 ... ?itemid=83
http://web.archive.org/web/200901312243 ... ?itemid=84
...

I do have copies of the sites above. But I do not know how to add attachements...
ubmtdc
 
Posts: 10
Joined: Fri Mar 29, 2013 10:30 am
Been thanked: 0 time

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

Postby leegong » Mon Apr 08, 2013 1:58 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 » Tue Apr 09, 2013 12:59 am

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

Next

Return to External Hacks

Who is online

Users browsing this forum: No registered users and 4 guests