Interfacing to an existing RS-485 Bus

We are creating a device which is to be slave device on a RS-485 bus. Th protocol on the bus is not doumented and hence we are reverse engineerin as we are going.

The slave devices are configured unique addresses which can be upto bytes. The master periodically sends out what we call IDLE messages whic is a set of 4 bytes.

If a device wants access to the BUS it seems that the slave has to sen its address between the IDLE bytes such as:

I1 I2 I3 I4 > IDLE bytes from the Master F6 > from Salve to request bus

Then Master replies with a bus grant message and thereby Slave has th bus.

The problem: ============ On the analyzer we find that I1 and F6 start at the same time.

We are not sure how does Slave respond almost immediately when I1 i generated by the Master.

We also see E4 and E2 events on the BUS (which we currently do no understand) and believe that may the way I1 and F6 are synchronized.

Any ideas on how this may be done is appreciated.

Our hw is currently not available hence we are trying to simulate this o a Windows machine.

Reply to
schadha
Loading thread data ...

On the RS-485 half duplex bus this is simply impossible. Use a decent serial line analyzer with proper time stamps or use a dual channel oscilloscope.

If these master and slave signals were obtained prior to the RS-485 buffers and they really occur simultaneously (verified by an oscilloscope), then this is some kind of CAN (Controller Area Network) style arbitration, which can be implemented also on RS-485 hardware (in fact the first CAN systems used RS-485 hardware before dedicated CAN hardware became available).

Paul

Reply to
Paul Keinanen

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.