Hacker News new | ask | show | jobs
by MisterTea 1694 days ago
RS485 is just an electrical standard for serial transmission that includes multiple devices on the same bus. It is not a network or transport protocol. I doubt SLIP would function on an RS485 connection as 485 is typically used in master-slave configurations where only one master unit sends messages and listening "slave" devices only respond if addressed. You'd have to write a protocol layer to handle the transport of packets over 485, even in four wire full duplex setups.

The issue with "stacking" is the pins on each board are not part of a bus but individual programmable io pins. Any stacking would require an intermediary board to isolate all these pins safely while adding the necessary TTL serial to 485 interface chips (e.g. Maxim max485).

CAN is similar to 485 where it's a 2 wire bus though it has smarter hardware which enables full duplex communication and any device can listen or transmit. Unfortunately it is pretty slow compared to Ethernet but plenty fast for its intended use.

2 comments

If the RPi SoC supported being an SPI slave (it doesn't) you could do something similar to a token ring network at up to - theoretically - something like 100 mbit/s.
or just use the standard rs485 protocol that all industrial hardware has used for decades and has preexisting nice libraries - modbus. Built in CRC, dirt simple, reliable.
I know modbus very well. The OP was talking about networking the machines using SLIP over 485 which is completely different than moving around bits and words.