View previous topic :: View next topic |
Author |
Message |
Gabriel Caffese
Joined: 09 Oct 2003 Posts: 39 Location: LA PLATA, ARGENTINA
|
RS-485 // Collision detect // RS232_ERRORS |
Posted: Sat Aug 20, 2005 5:41 pm |
|
|
Hi everyone,
I´m trying to set up an RS485 network, in wich there are 16 nodes.
Every node may TX and RX. There is one PC and 15 nodes based on 18F4620.
The bus is correctly setup, with termination and resistors for idling it when not in use.
I want to use the ENABLE option (defining it on #use rs232) for "taking" the bus and send data.
Now, wich way could I detect that other node is doing TX at one time, for avoiding collission ?
Hope someone could help.
Gabriel.- |
|
![](templates/subSilver/images/spacer.gif) |
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
|
|
Posted: Mon Aug 22, 2005 8:46 am |
|
|
Using a master slave protocol on a half-duplex network works well because slaves only reply to request. In that way the master controls what device is talking on the network and collission are not normaly possiable. |
|
![](templates/subSilver/images/spacer.gif) |
Guest
|
|
Posted: Mon Aug 22, 2005 3:48 pm |
|
|
Neuntone,
It´s a multimaster "network".
But I´ve solved it passing a token between nodes.
Thank you.- |
|
![](templates/subSilver/images/spacer.gif) |
|