I have an architecture (see attached picture) including a Master (Arduino Uno) and Clients (Arduino Mega) connected by RS-485 using RS-485 to TTL adapter.
The Clients suppose to send data to the Master. I have the following questions:
How many Clients can be connected to the Master? I guess the quantity is limited by RS-485 topology and it is 32. Is this correct?
What library shall I use for communication?
Can the Clients send data to Master simultaneously, or only one Client can communicate at a time?
I'll appreciate if anyone can answer my questions.
Typically, RS485 is HALF-DUPLEX across a shared single pair of twisted wires (A+B). All devices are simply connected to the same pair of wires. Therefore only ONE device can TRANSMIT at a time... and all the other devices must be listening (receiving).
There can be no simultaneous communications... otherwise the 2 transmitters would fight each other on the shared wires and no data would be correctly received by any device.