Example of auto addressing nodes implementation in C

Status
Not open for further replies.

dpechman

Advanced Member level 4
Joined
Mar 12, 2002
Messages
102
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,298
Location
Brazilzil
Activity points
555
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
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…