Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

RS485 half-duplex collision detection

Status
Not open for further replies.

Shek

Newbie level 3
Joined
Jun 30, 2004
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
26
rs485 half duplex

I'm using a RS232 to rs485 converter to connect a PC to a rs485 bus. The bus is half-duplex, so how can I detect if someone is speaking in the bus and avoid collisions??
Could you advise me any rs232 to rs485 converter that has collision detection?
thanks
 

rs485 collision detection

Do you want to write protocol for communication on RS-485 bus? If so, you should read "data communication" book. Else, I think converter must have the hardware support for communication on bus.
 

rs485 collision

First you must check that nothing is received (bus idle) for some time (a few mS).

Afterwards start sending your packet. As the bus is half duplex you are also receiving what you are sending, so if you do not receive exactly what you are sending there must be a collision. So go back to start and wait a few mS while nothing is received (bus idle) and restart sending your packet.

Look for example at:
https://www.modbus.org

for a description of the Modbus protocol and you will get some ideas.

best regards
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top