Hello All, Here is my sensor topology..
_____________ _____________ | | | | Tx |------------|--------->| Rx | | | | | | |ATMEGA128 | | | ATMEGA8 | | | | | | | Rx |------------|------|-->| Tx | |____________| | | |____________| | | | | _____________ | | | | | |---------->| Rx | | | | | | | | ATMEGA8 | | | | | |------|---------->| Tx | | | |____________| | | | | _______________ | | | | | |---------->| Rx | | | | | | | |ATMEGA8 | | | | | |------|---------->| Tx | | | |______________| | | | | | | _______________ | | | | | |---------->| Rx | | | | | |ATMEGA8 | | | | |----------------->| Tx | |______________|
Here, the atmega128 is the main controller and all other atmega8 are connected to the main controller using rs485 cable.
What is the best communication protocol for this to detect and avoid collision.?
I have 20 atmega8 connected in a row..(i.e all the tx pins of atmega8 are connected together and finally connected to the Rx of the main controller) and distance between the any atmega8 or atmega128 is 3 meters....