Auto addressing nodes
Im trying to develop an network using picmicro over rs485. some one have some example of implementation (in C) of auto-addressing of the nodes? node 0 will be master and 1 to 31 slaves...
my ideia:
put one button in the devices to reset address and change it to 32, so the master scan can ask for "32" at every scan end and if some response is maked change it again to some avaliable address...
my question is, how shoud be the timeout value to dont make my network slow?
How to treat the timeout of address 32 and or any address with problems?
tks,
Daniel