2019-04-05 12:59 AM
Hello, all!
A quick question: if I want to transfer data between 2 STM32 devices, which are located 1 meter apart, at a rate of at least 20Mb/s, in bursts of 300KB at a time. what is the best way to do so?
The communication is unidirectional.
I suppose my options are either :
Thanks!
2019-04-05 03:09 AM
OP said 20Mb/s (megabits), not 20MB/s
2019-04-05 08:57 AM
My 2 questions are:
Is power and ground common to both devices.
Is this link ever unplugged
2019-04-05 09:19 AM
Exactly. I read it as 20 Mb and the OP hasn't edited the post.
USB might also be worth a look, supposedly 480 Mb/s there, although I think that is overly optimistic for the ST implementation.
2019-04-05 10:14 AM
It could be a fun idea to have QSPI as slave mode on STM32. Then we would have many scalable options to exchange data between 2 MCUs with direct memory mapping (read and write eventually).... to add to the STM32 Wish list?
2019-04-05 12:07 PM
Yes, the ground is common.
They work only with each other, connected via a connector that I'll add, depending on the chosen protocol.
2019-04-05 05:31 PM
I would use :
SPI
Ethernet 1m CAT5 patch cable
RJ45 connectors
RS422 tx rx chips or RS485 transceivers
100 ohm termination on each pair
Make sure that on the receiving side you sample in the middle of the data cycle.
TI SN65HVD7x 3.3-V Supply RS-485 With IEC ESD protection is rated up to 50Mb/s
2019-04-05 10:26 PM
Both the transeiver which diff the signal and the peripheral in the MCU must sustain the speed.
Otherwise, multiply the peripherals on each side to widen the bus...