FAQ FAQ  Forum Search   Events   Register Register  Login Login

E-mount electronic protocol reverse engineering

Page  <1 12131415>
Author
bostwickenator View Drop Down
Newbie
Newbie

Joined: 19 June 2009
Status: Offline
Posts: 29
Post Options Post Options   Quote bostwickenator Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2020 at 02:42
Sorry I didn't realize how I left those scattered around it's been a while since I was in the code. I've updated the readme with a diagram of the connections (MS paint sorry) https://github.com/LexOptical/E-Mount/blob/master/README.md
 



Back to Top
profhankd View Drop Down
Newbie
Newbie

Joined: 11 February 2010
Country: United States
Location: Lexington, KY
Status: Offline
Posts: 31
Post Options Post Options   Quote profhankd Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2020 at 04:19
Originally posted by bostwickenator bostwickenator wrote:

Sorry I didn't realize how I left those scattered around it's been a while since I was in the code. I've updated the readme with a diagram of the connections (MS paint sorry) https://github.com/LexOptical/E-Mount/blob/master/README.md


Just to be clear, I wasn't complaining. :-)

I just want to make sure that when I wire it up any failure to duplicate the behavior you saw is due to me testing with a different E body model. I modified a Voking extension tube and am expecting my Teensy 3.5 next week, so probably another week before I have results to post here....
Back to Top
bostwickenator View Drop Down
Newbie
Newbie

Joined: 19 June 2009
Status: Offline
Posts: 29
Post Options Post Options   Quote bostwickenator Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2020 at 15:07
Sounds good! Happy to help if you have any issues with getting that bootstrapped
Back to Top
profhankd View Drop Down
Newbie
Newbie

Joined: 11 February 2010
Country: United States
Location: Lexington, KY
Status: Offline
Posts: 31
Post Options Post Options   Quote profhankd Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2020 at 05:54
Ok. I managed to hack connections into a Voking adapter and hooked it up as you suggested to a Teensy 3.5. It spews lots of C and c messages and when my NEX-5 is turned off shows a B and L. Mixed in among the C and c messages are things like:

00:44:31.248 -> C 5971747
00:44:31.248 -> c 5988131
00:44:31.248 -> [B:5988268]
00:44:31.248 -> [l:5988582]
00:44:31.248 -> Init Complete
00:44:31.248 -> [b:5988595]
00:44:31.248 -> C 5988605
00:44:31.248 -> [B:5993466]
00:44:31.248 -> [b:5994175]
00:44:31.248 -> [L:5994184]
00:44:31.248 -> [l:5994832]
00:44:31.248 -> Body->Lens F02900020001FFFFFFFFFF7F0000000000000000000000000000000000000000000000000000A60555 5995290
00:44:31.248 -> Us->Body no message
00:44:31.281 -> c 6004815
00:44:31.281 -> C 6005113

However, the camera doesn't seem to be getting much out of this. The only sign that a lens is attached is that the camera is not letting me fire the shutter. It still has "F--".

Is this roughly what you'd expect? What do you think I should be doing next?

Thanks.

Back to Top
Entropy512 View Drop Down
Groupie
Groupie

Joined: 22 July 2015
Country: United States
Status: Offline
Posts: 57
Post Options Post Options   Quote Entropy512 Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2020 at 19:33
Originally posted by bostwickenator bostwickenator wrote:

You should pull my Teensy code. It does all the negotiation stages and enters the main message loop. From there it should be pretty easy to do what you are talking about. Also I have docs for the message sequence. Just please don't start from scratch again 3 of us have gotten to roughly this point before giving up. https://github.com/LexOptical/E-Mount

I wouldn't say necessarily that anyone has given up, more like taking an extended break... This project has always been in "spurts" for me. (I've always had a bad habit of not completely finishing projects...)

Glad to see you here Hank, your posts on dpreview are always incredibly useful, and most importantly, your 3D printing skills are way beyond mine.

My lack of mechanical ability to go beyond "hacked extension tube" always limited where I could go.

I STILL have a Teensy I haven't gotten around to setting up to run Alex's code yet. I swear I'll do it one of these days.

Sorry for the slow response - when this thread activity happened I was on family vacation, and forgot about it until the Pentax adapter news reminded me of it.
Back to Top
profhankd View Drop Down
Newbie
Newbie

Joined: 11 February 2010
Country: United States
Location: Lexington, KY
Status: Offline
Posts: 31
Post Options Post Options   Quote profhankd Quote  Post ReplyReply Direct Link To This Post Posted: 24 November 2020 at 19:43
Originally posted by Entropy512 Entropy512 wrote:

Originally posted by bostwickenator bostwickenator wrote:

You should pull my Teensy code. It does all the negotiation stages and enters the main message loop. From there it should be pretty easy to do what you are talking about. Also I have docs for the message sequence. Just please don't start from scratch again 3 of us have gotten to roughly this point before giving up. https://github.com/LexOptical/E-Mount

I wouldn't say necessarily that anyone has given up, more like taking an extended break... This project has always been in "spurts" for me. (I've always had a bad habit of not completely finishing projects...)

Glad to see you here Hank, your posts on dpreview are always incredibly useful, and most importantly, your 3D printing skills are way beyond mine.

My lack of mechanical ability to go beyond "hacked extension tube" always limited where I could go.

I STILL have a Teensy I haven't gotten around to setting up to run Alex's code yet. I swear I'll do it one of these days.

Sorry for the slow response - when this thread activity happened I was on family vacation, and forgot about it until the Pentax adapter news reminded me of it.


I have the hacked adapter & teensy sitting next to me... but I had 3 papers into Electronic Imaging on other things, so I've not touched this since my last post. Maybe in another week or two -- our semester just ended, so at least I will not be spending most of my time with teaching things....
 



Back to Top
Leegong View Drop Down
Newbie
Newbie

Joined: 30 September 2016
Status: Offline
Posts: 28
Post Options Post Options   Quote Leegong Quote  Post ReplyReply Direct Link To This Post Posted: 14 January 2021 at 01:10
In TAMRON A036 Lens ,
Renesas chip R2A30440 is responsible for Focus motor and Aperture motor controlling,
in A036 firmware , i found lots of codes that communicate with R2A30440 ,
Could anybody share with User Manual of R2A30440 so i can decode these codes.
Back to Top
vitor View Drop Down
Senior Member
Senior Member

Joined: 10 August 2006
Country: Portugal
Location: Lisbon
Status: Offline
Posts: 1961
Post Options Post Options   Quote vitor Quote  Post ReplyReply Direct Link To This Post Posted: 14 January 2021 at 08:53
In case it helps here is the
R2A30440 datasheet download link
Back to Top
Leegong View Drop Down
Newbie
Newbie

Joined: 30 September 2016
Status: Offline
Posts: 28
Post Options Post Options   Quote Leegong Quote  Post ReplyReply Direct Link To This Post Posted: 18 January 2021 at 01:00
vitor , Thanks so much .
however R2A30440 Datasheet does't help unfortunately ,
because there is no description of R2A30440
controlling commands in the datasheet.
Back to Top
bostwickenator View Drop Down
Newbie
Newbie

Joined: 19 June 2009
Status: Offline
Posts: 29
Post Options Post Options   Quote bostwickenator Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2021 at 03:51
I spoke with Renesas they won't provide additional information as the product is already discontinued. Dead end there.
Back to Top
Leegong View Drop Down
Newbie
Newbie

Joined: 30 September 2016
Status: Offline
Posts: 28
Post Options Post Options   Quote Leegong Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2021 at 00:30
Hi,bostwickenator,thanks so much .
R2A30440 is strongly important for decoding many details of focusing Commands from camera body to A036 , as well as lots of Focusing/Aperture status sent from A036 to camera body.
Anyother SoftWareManual of R2A3 series chips is important also,
i believe that motor controlling CMDs are almost same in R2A3 series .     
Back to Top
Entropy512 View Drop Down
Groupie
Groupie

Joined: 22 July 2015
Country: United States
Status: Offline
Posts: 57
Post Options Post Options   Quote Entropy512 Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2021 at 00:46
Yeah, I think I saw evidence that there's a "similar" part number - R2A30423 I think? I got the impression that it was older though.

Unfortunately while it seems to be easy to find the pinout, a proper datasheet that includes the register map seems to be nonexistent.

I'm guessing it is problematic to determine when certain commands are being set from your disassembly efforts leegong? This is a case where someone with much better mechanical skills than us might be able to do some fancy soldering and put a logic analyzer on those SPI lines... Having the timing of when those various commands go to the chip would likely make things a LOT easier.

Side note - a work project had me doing more with sigrok/fx2lafw lately, so I might finally get back to getting some traces from my newer hardware. :) In fact, it looks like the sigrok team finally fixed (or at least partially worked around) the srzip write amplification issues that caused me no end of headaches. My workarounds were a PITA to maintain.

I wish someone who was more mechanically inclined than most of us seem to be would create an "adapter breakout" device - EF to E mechanically, but breaking out both EF and E to 0.1" headers.
Back to Top
profhankd View Drop Down
Newbie
Newbie

Joined: 11 February 2010
Country: United States
Location: Lexington, KY
Status: Offline
Posts: 31
Post Options Post Options   Quote profhankd Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2021 at 02:37
Originally posted by Entropy512 Entropy512 wrote:


I wish someone who was more mechanically inclined than most of us seem to be would create an "adapter breakout" device - EF to E mechanically, but breaking out both EF and E to 0.1" headers.


I have a different breakout connected right now (a modified extension tube), but my first attempt was a 3D-printed flange with holes for brads. Basically, you put the brads in locking them in place with heat from a soldering iron, sand down the outside surface to make smooth contacts, and then wire-wrap to connect to them on the inside. Thick copper wire would probably work even better than brads.

I've been too busy to do anything more with that; I had 3 papers at Electronic Imaging 2021 on other things and have been working on open source plans for a 2.6GP large-format scanning camera I built. However, the adapter pin design does allow 3D-printing arbitrary adapters with electrical contacts, and you also can embed electronics parts in the 3D printed design by printing traceless PC-board-like mounts and wire-wrapping to them.

Realistically, this probably will not advance much until this Summer... but by then I expect to have my lab at the University of Kentucky at least partially operating again and getting students involved....
Back to Top
Entropy512 View Drop Down
Groupie
Groupie

Joined: 22 July 2015
Country: United States
Status: Offline
Posts: 57
Post Options Post Options   Quote Entropy512 Quote  Post ReplyReply Direct Link To This Post Posted: 22 January 2021 at 12:10
Hank - I believe that was similar to an approach someone had for a REALLY long EF extension tube that they 3D printed. It had some ideas for going forward whenever I get back around to this.

The lens side of almost any mount interface is going to be easier - your strategy would probably work well for most mounts. The problem is the camera side (or for an adapter, the "adapter to lens" side), since those have spring contacts. At least one person has succeeded with pogo pins (the EF megatube guy), although it was really finicky.

AHA - found it - https://sherlock-photography.github.io/canon-extension-tube/

I just haven't had the time to alter this basic idea to my needs.
Back to Top
Dyxum main page >  Forum Home > Dyxum Community > Knowledge Base Page  <1 12131415>

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.063 seconds.

Monitor calibration strip

Dyxum.com - Home of the alpha system photographer

In memory of Cameron Hill - brettania

Feel free to contact us if needed.