Author Topic: Consulting project: Serial communication over optical (SPDIF) interface  (Read 1864 times)

0 Members and 1 Guest are viewing this topic.

Offline AlexITopic starter

  • Contributor
  • Posts: 18
  • Country: us
I'm looking for someone to prototype fast, reliable serial communication over fiber optical cable using standard SPDIF transmitter/receiver.  This project would include both hardware (can be breadboard or some simple PCBs) and firmware.  The setup would look like this:

STM32 MCU -> SPDIF transmitter -> fiber optic cable -> SPDIF receiver -> STM32 MCU -> USB HS -> PC running linux

The SPDIF transmitter and receiver can be any readily available parts, for example Everlight PLT237/PLR237.  I'd like to push the data rate right up to the max spec of the parts (25Mbps).  Because of that, the receiving side probably has to communicate with the PC using USB HS, just USB FS is not fast enough.  The microcontrollers can be any STM32 which is fast enough, but it really helps if they have builtin USB HS PHY, for example STM32F730 or F723.

Compatibility with the standard SPDIF (audio) data format is not required, this just uses SPDIF as a data pipe for arbitrary data.  The sending MCU needs to encode data using some type of DC-balanced and run-length-limited line code (Manchester, 8b/10b etc), not necessarily the same one as normally used in SPDIF (biphase mark code).  The receiving MCU needs to recover the clock (it can either use a UART peripheral for that, or something else) and then decode the line code.

The sending side can send a test pattern from memory. Eventually I'd like to be able to use this as an optical UART replacement at 25 Mbps.

If this goes well, there may be a followup project to do the same thing using faster optical transceivers at 100Mbps+.

This is a paid consulting project; you can be located anywhere.  I'll cover expenses (parts, dev kits, custom boards, etc).  Deliverables: working prototype, code, schematics.

If this sounds like something you're interested in, please PM me.
« Last Edit: October 24, 2024, 05:59:59 am by AlexI »
 

Offline rhodges

  • Frequent Contributor
  • **
  • Posts: 348
  • Country: us
  • Available for embedded projects.
    • My public libraries, code samples, and projects for STM8.
Re: Consulting project: Serial communication over optical (SPDIF) interface
« Reply #1 on: October 24, 2024, 01:38:25 pm »
Have you considered multimode fiber optic modules? When I was working with ATM, these were all over my OC3 (155mb/s) modules and it was super easy to plug in the SC ("stick and click") fiber connectors.
I have sent most of my gear to the recyclers but I might have some I could send you to play with.
Currently developing embedded RISC-V. Recently STM32 and STM8. All are excellent choices. Past includes 6809, Z80, 8086, PIC, MIPS, PNX1302, and some 8748 and 6805. Check out my public code on github. https://github.com/unfrozen
 
The following users thanked this post: AlexI

Offline AlexITopic starter

  • Contributor
  • Posts: 18
  • Country: us
Re: Consulting project: Serial communication over optical (SPDIF) interface
« Reply #2 on: October 25, 2024, 05:28:03 am »
Have you considered multimode fiber optic modules? When I was working with ATM, these were all over my OC3 (155mb/s) modules and it was super easy to plug in the SC ("stick and click") fiber connectors.
I have sent most of my gear to the recyclers but I might have some I could send you to play with.

Thanks!  For multimode fiber optic modules, you mean something like SFP modules just for OC3 not ethernet?  Yeah, I've looked at a bunch of spec sheets recently, for 100Mbit ethernet transceivers as well as gigabit, both SFP and "1x9" form factor, all different types (650/850/1330nm etc).  I haven't measured any of them hands on, but from the specs it seems the modules with builtin drive circuitry pretty much all have a 100-150mA or higher current draw which (I think) is continuous, not just when transferring data.  A proper ethernet implementation would add ~50mA to that for the MAC+PHY (ouch)

I'm guessing it's possible to not use a PHY and just send data to the module, as long as the rate is fairly high (how high?) and it's DC-balanced; basically using the SFP the way I wanted to use SPDIF. The real trick would be using a SFP module at a low average data rate but a high instantaneous data rate, to make the power scale with data rate.  How fast can a module be powered up and down?  After it's powered up, probably the first thing to do is send a string of alternating 1s and 0s to get the AGC on the receiver working... also how long a string?  That's an interesting notion, just seems a bit complicated
 

Offline voltsandjolts

  • Supporter
  • ****
  • Posts: 2474
  • Country: gb
Re: Consulting project: Serial communication over optical (SPDIF) interface
« Reply #3 on: October 26, 2024, 09:48:51 am »
If this is for a low volume application you could consider commercial off-the-shelf USB extenders, optical isolated versions if you prefer. Then the chain would simplify to

STM32 with USB device I/F > USB extender > PC

https://www.lindy.co.uk/usb-c4/usb-extension-c222

 

Offline dirkdokter

  • Newbie
  • Posts: 1
  • Country: nl
Re: Consulting project: Serial communication over optical (SPDIF) interface
« Reply #4 on: October 30, 2024, 10:56:34 am »
Hi Alex,

I can help with this. Can you please send me an email, to the e-mail address in my profile?

Kind regards,
Dirk
 

Offline Ice-Tea

  • Super Contributor
  • ***
  • Posts: 3208
  • Country: be
    • Freelance Hardware Engineer
Re: Consulting project: Serial communication over optical (SPDIF) interface
« Reply #5 on: October 30, 2024, 11:07:40 am »
You haven't mentioned range... Rather important.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf