原创 尼康热靴协议-6

2012-6-12 17:45 1836 6 6 分类: 消费电子

Checksum byte (last byte in frame)

For payload lengths greater than 3 bytes the very last byte in a frame is a checksum byte. It is calculated by summing all the bytes in the payload plus the seed given in "Table: Command Overview". The lowest eight bits of this sum are send as the checksum:

CRC = (SUM(payload)+seed)%256

 


Data that is not send

The following data is not send from the D700 to SB800:

  1. Status about the shutter release button
  2. VR on/off setting
  3. Focus limitation switch 
  4. AF/M setting

The flash does not send any data at all if it is in the mode "CLS-Remote"

Notes: Der SB900 is able to detect color filter and sends this data to the cam for white balance adjustment

Note to self: set flash to af-ill only (not to fire a flash) => Status bits??

 


Summary

This protocol is pretty weird: It is frame based, but the header of the frame does not show how many bytes are to be transferred. You have ho implement a lookup table for this. Although the communication is initiated by the camera the flash provides the clock for the synchronous data transmission. The clock frequency and the whole timing is agonizingly slow. So slow that during normal operations the bus is busy for about 80% of the time. In case you want to implement this protocol you will find that you will have to sacrifice about the full processing power for the transmission of just a few bytes. But anyway Nikon managed to successfully implement it. Hats off!

 


Resources

Data captured by my logic analyzer. The software to view the data is free for download and available at http://www.saleae.com/downloads/

1.) wake_camera Sample communication: Wake up camera by half-pressing the shutter button; Initialization of the flash. D700 and SB800, 24mm lens, mode P, 1/30, f5.6
2.)   Regular status communication: 0xA0 and 0xB0
3.)   AF-ILL on and off
4.)   Fire a flash: Preflash1, Preflash2, Flashpower, X-Sync, Postflash

Here you find the Nikon SB800 Repair manual

PARTNER CONTENT

文章评论0条评论)

登录后参与讨论
EE直播间
更多
我要评论
0
6
关闭 站长推荐上一条 /3 下一条