Are you somehow going to tell the PIC master node when he is the master via some type of command? Please log in and try again. A simpler scheme is to be watching the bus before you send. The logic of each node is supposed monitor the recessive bits of the MID byte to determine whether any other node is transmitting a dominant bit at that time. Keep retrying until you get that ACK back. Sign up using Email and Password.
|Date Added:||27 August 2009|
|File Size:||29.19 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
By RT on 7 January, – 6: My current options are either finding an easier library that is capable of doing what I need, learning how to make the linked library work which Deteection have already tried or building my own serial communication protocol that implements collision avoidance and a multiple master configuration. User Join or Sign In.
The library itself is non-trivial because the problem is also non-trivialso to understand how it works is also non-trivial Majenko, in his answer, gave a nice functional description of some of the features that are implemented by the library.
A simpler scheme is to be watching the bus before you send. My setup would have multiple masters that send messages to only one slave that performs a task upon been given the message. My hint would be Eagle PCB clearance error 2.
Post as a guest Name. But I am not looking for a standard. Collision avoidance is a tricky subject. Hi, In the multi-master mode, the PC will disable the second master by a command.
In typical applications, a half-duplex RS transceiver chip is used to connect to the bus. Sun Mar 04, 8: The included transaction management will resend the message after the bus is idle again.
rs – J Half Duplex Collision Detection – Electrical Engineering Stack Exchange
Please reply I need help in resolving this. Please advise if there is any problem in this setup If it doesn’t get received, or the wrong byte gets received, then you have a collision.
RS485 Bus with collision detect
However, here is a thought: So your remote device would have to be able to gracefully handle receiving the same packet multiple times and discarding yet still ACKing the repeated packets. Send them to support ccsinfo. But if there are two devices both waiting to send again, how can you be sure that they won’t defection be waiting for dollision same time, and thus collide again? The time now is Sign up or log in Sign up using Google.
Is there a better way of implementing this type of communication? RS half-duplex collision detection. Collision detection is implemented by read-verified-write, i. I have a custom single master RS network in my house with 37 nodes.
The preferred way to contact me on these matters is by creating an issue on my Github project page: Paul Reply Start a New Thread.