Case You want to see, what happens between the camera and the lens, You will need n oscilloscope, or, better a logic analyser. This is a cheap chinese one – but for our purposes will be ok.
Works for example with the
Saleae software: https://www.saleae.com/pages/downloads , or the
Pulseview software: https://sigrok.org/wiki/Downloads .
Case you need an USB driver, you can use the
zadig: https://zadig.akeo.ie/ driver finder (I can not guarantee, if is virusfree or not – but worked for me.
This is the lens pinout:
You can find some interesting material here:
https://gist.github.com/marcan/858c242db2fc595da1e0bb70a05192fc#file-canon-ef-protocol-notes-md
https://pickandplace.wordpress.com/2011/10/05/canon-ef-s-protocol-and-electronic-follow-focus/
Be careful: the Canon SPI is NON-standard, for ex uses 9 bits, but only the first 8 belong to the data.
Use these parameters:
CPOL=1
CPHA=1
no CS signal
I can not write Python programs – so I hade to solve the conversion in an external Excel sheet, see below.
Good luck.