Bi-phase mark protocol

Hi All,
Have any of you used a protocol called Biphase Mark? If so, how’d you convert the signal into something Opto?

If the signal is TTL level, I wonder if the signal could be dumped into an SSI module set to twice the expected BPM frequency and then count qty of 1s and 0s in the strategy to figure out the data.