5-pin DIN socket advertised as MIDI, not the same as on my MIDI gear
"DIN" is the name of the German standardization body; all the relevant dimensions are exactly specified in DIN 41524, or nowadays IEC 60130-9.

The cable's connector has five simple pins:


There are different ways of aligning the springs that hold these pins:



However, what matters are the positions of the actual pins and holes, and those are always the same: