ztan wrote:I have been wondering about the body-lens interface...
ztan wrote: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)
ztan wrote:Regarding body-lens communication, there is a serial protocol with some command codes available:
ubmtdc wrote: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).
064: 0x0098(00152): MAKER_NOTES (9): LensDataBytes_Type9 : 30 31 30 30 22 50 63 48 2b 44 24 24 68 16 24 07 49 1d 53 00
099: 0xfffb(65531): SPECIAL (0): LensID_Type0 : Nikon AF-S Nikkor 17-35mm f/2.8D IF-ED
Vicne wrote:So what are the bytes transmitted ?
The first to speak is the body that sends 0x22 (bytes are sent LSB first). Then the lens replies with a 26-byte frame. (unfortunately, the sniffed table was a jpg image that goes missing . I'll try to ask the original author.)
- ROM:BFC42420 lui $v0, 0xFFFF
- ROM:BFC42424 lbu $v0, SC1_RX_header0 # read FFFF7056
- ROM:BFC42428 cmpi $v0, 0x22 # '"'
- ROM:BFC4242A btnez return1
- ROM:BFC4242E lui $v0, 0xFFFF
- ROM:BFC42432 lbu $v0, SC1_RX_size # read FFFF7055
- ROM:BFC42436 cmpi $v0, 26
- ROM:BFC42438 btnez return1
- ROM:BFC4243C li $s0, 0
- ROM:BFC4243E b fun_ret
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...
Users browsing this forum: No registered users and 1 guest