Lens serial communication

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

Re: Lens serial communication

Postby coderat » Mon Nov 04, 2013 5:56 am

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

Re: Lens serial communication

Postby lain » Mon Nov 04, 2013 6:24 am

User avatar
lain
Developer
 
Posts: 189
Joined: Fri Mar 29, 2013 3:42 pm
Been thanked: 111 times

Re: Lens serial communication

Postby leegong » Mon Nov 04, 2013 6:27 am

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 lain » Mon Nov 04, 2013 6:37 am

leegong, these commands might be related to AF, but I'm not 100% sure: 0xEC, 0xE3, 0xE7, 0xEA

Also, command 0xC2 is sent a lot (even outside of AF) with various results, I'm not sure the direction of data. I think it requests status and maybe sets some lens parameters...

0xEC was seen with data: "88 50 07" and "98 d0 07"
0xE3 has no data
0xE7 was seen with data: "50", "51", "52", and "53"
0xEA was seen with data: "00", "02"

Let me know if you need more information, I can perform some basic lens operations and give you a full timestamped dump of all commands and their data, plus a summary of all commands and unique datas seen.
I'm done capturing data for the day, but I will get back to it in the next few days.

EDIT: Oh also, on my older Sigma 70-200 with the D5100, command 0xE0 is sent before AF operations according to my notes, but I need to double-check that next time I capture data.
User avatar
lain
Developer
 
Posts: 189
Joined: Fri Mar 29, 2013 3:42 pm
Been thanked: 111 times

Re: Lens serial communication

Postby coderat » Mon Nov 04, 2013 6:40 am

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

Re: Lens serial communication

Postby lain » Mon Nov 04, 2013 6:46 am

coderat, very close, but it is:
96kBaud
0x40 -> Lens
00 00 01 04 00 00 01 <- Lens
02 1A -> Lens
156kBaud
0x41 -> Lens
02 1A <- Lens

So, the data on the wire (without direction) is:
40 00 00 01 04 00 00 01 02 1A
41 02 1A
User avatar
lain
Developer
 
Posts: 189
Joined: Fri Mar 29, 2013 3:42 pm
Been thanked: 111 times

Re: Lens serial communication

Postby coderat » Mon Nov 04, 2013 6:56 am

@Lain
To chase AF apart, first take Nikon 35/1.8G, put to "M" manual mode and select 3d-matrix measurement on camera. Then try to focus on different objects witha hand and log communication from near, middle to far. There must be "distance" status byte requested from Lens, it is value ID=1...8. It is not "meter", it is just index value. Then you can start AF tests.

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

Re: Lens serial communication

Postby leegong » Mon Nov 04, 2013 7:02 am

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 coderat » Mon Nov 04, 2013 7:17 am

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

Re: Lens serial communication

Postby lain » Mon Nov 04, 2013 7:23 am

User avatar
lain
Developer
 
Posts: 189
Joined: Fri Mar 29, 2013 3:42 pm
Been thanked: 111 times

PreviousNext

Return to External Hacks

Who is online

Users browsing this forum: No registered users and 2 guests