Lens serial communication

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

Re: Lens serial communication

Postby leegong » Sat Sep 06, 2014 6:27 am

Lens CMD_0xC2 , 0xC3 and 0xC5 seem to get current status of lens ,
response.field0.bit2 ,bit3 are related to MfDrive_Step_End stated
in D5100 MTP spec , but no idea about its meaning yet .
Attachments
Lens_CMD0xC5.png
leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Lens serial communication

Postby Silverwolf » Sun Sep 14, 2014 9:07 am

User avatar
Silverwolf
 
Posts: 41
Joined: Thu Jul 25, 2013 5:52 am
Location: Moscow, Russia
Been thanked: 1 time

Re: Lens serial communication

Postby leegong » Mon Sep 15, 2014 5:35 pm

@Silverwolf ,
"MF Driving step end" is checked in firmware B , however the real original source data for checking comes from
Lens CMD_0xC2 , 0xC3 and 0xC5.response.field0.bit3 and bit2 , just found :
bit3 = 0 : Unknown , 1 : "MF Driving step end" is active
bit2 is available only when bit3 = 1 :
bit2 = 0 : MF Driving step end (case 0)
bit2 = 1 : MF Driving step end (case 1)
but no idea about the difference between case 0 and case 1 .
@astrocow , lain ,
Could you manage to confirm Lens CMD_0xC2 , 0xC3 and 0xC5.response.field0.bit3 and bit2 ?
leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Lens serial communication

Postby derWalter » Tue Sep 16, 2014 1:50 pm

derWalter
 
Posts: 17
Joined: Wed Jul 10, 2013 4:47 am
Been thanked: 5 times

Re: Lens serial communication

Postby max » Tue Sep 16, 2014 8:17 pm

max
Site Admin
 
Posts: 485
Joined: Sat Nov 26, 2011 2:40 pm
Been thanked: 163 times

Re: Lens serial communication

Postby derWalter » Wed Sep 17, 2014 5:23 am

derWalter
 
Posts: 17
Joined: Wed Jul 10, 2013 4:47 am
Been thanked: 5 times

Re: Lens serial communication

Postby stefanhoo » Mon Sep 29, 2014 2:40 am

Hi all! First post here...
First off, thanks to all the developers and contributers here, you're doing great work!
I'm a noob in coding and such, but the last 25 pages of this thread have been facinating to read!

If i may ask: I would like to build myself a (half-active) Nikon adapter, which allows the use of VR.
Has anyone managed to get lain's arduino program working which he posted a few pages back?

My idea would be an Arduino Nano board, providing the power of 4 AA batteries (for the prototype) initializing the lens (as documented on lain's github link), and sending the 0xD1 command to set VR ON, until the lens gets disconnected. After that, when a new lens gets connected again, the initialization and VR ON process should start again.

I know all this may sound stupid for you guys and my thinking is maybe way to simple, since i don't really understand any of the stuff you guys are talking about all the time, but i thought it's worth a try... :)

thanks and cheers!
stefanhoo
 
Posts: 1
Joined: Mon Sep 29, 2014 2:03 am
Been thanked: 0 time

Re: Lens serial communication

Postby leegong » Mon Jan 19, 2015 7:44 am

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

Re: Lens serial communication

Postby leegong » Sun Jan 25, 2015 5:04 am

The byte mentioned above comes from 7 bytes lens response for CMD 0x40 ,
this bytes is the 6th byte .
leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

Re: Lens serial communication

Postby leegong » Sat Apr 18, 2015 10:05 am

Lens data exitPupilPosition is the index for fetching shading data which is sent to pre-processing chip0x6700 .
leegong
Core Developer
 
Posts: 2143
Joined: Mon Mar 19, 2012 12:21 am
Location: Hangzhou , China
Been thanked: 553 times

PreviousNext

Return to External Hacks

Who is online

Users browsing this forum: No registered users and 2 guests