So different speed will have different impedance? or the impedance of each differential receiver is not depending on speed?It all depends on the length of the cable and the actual impedance of each differential receiver. Signal integrity will depend on having proper terminations at the ENDS of the cable plant. This assumes the inactive transmitters will be in a High Impedance state. In any particular installation you might get more than 32 devices. What you have to do is test it.
I meant that without measuring the differential impedance of the receiver it is impossible to know what is actually going on. The datasheet can be a guide but only measurement is definitive. As you stress the installation of devices and cable different things can happen. The worst case for example is one device at one end of a long cable and 31 devices collected at the other end. This situation differs from 32 devices spread out equally along the cable. One of the big challenges is turnaround on a two wire system. You need to keep the transmitter enabled until the last bit (a STOP bit) has been placed on the cable and allowed to propagate to the other end. Then that transmitter must be disabled and everybody has to listen for at least one cable length propagation delay before another node attempts to speak (by enabling it's transmitter).So different speed will have different impedance? or the impedance of each differential receiver is not depending on speed?
I think I understand the first part, but not sure about the second part.You want to set your bitrate to allow reflections along the cable to die out before the "sample point" for a received bit occurs. If a UART divides a "bit cell" into 16 equal sized time slices, then the samples of the bit value are taken at the 7th, 8th, and 9th time slices. Majority (2 out of 3) rules.
Years ago, when we were new at RS485, we did some RS485 installations that were "2 wire" like in some documentation........ and the need for a common reference ("ground").
I will properly need an integrated solution. a modules is properly too big too expensive for our application.Years ago, when we were new at RS485, we did some RS485 installations that were "2 wire" like in some documentation.
They had very intermittent operating problems. The common ground that ebp mentions above were left off.
One setup in a wire mill gave a lot of problems as when big motors started, the ground reference of individual controllers would bounce way beyond the common mode tolerance of the drivers so the network would hang.
Opto isolating I/O and the power supply commons helps but a common ground, and the twisted pair cable shield can be used, solved the problems.
A series resistor can be added to the shield common connection to limit current flow if you like. Sometimes, getting RS485 networks running well can seem like black magic
That is one reason I like the MornSun modules mentioned earlier.
http://www.mornsun-power.com/html/product/RS-485-Transceiver-Module.html
Before you try testing on the actual cable system in the field you might want to put a kilometer of cable on the lab bench and try it out before you go into the field. You can compare waveforms on a scope at both the transmitting end and the receiving end. This is a bit tougher to do in the field.Thanks guys, I think I can understand it a lot better now than before asking my question.
So a unit load is limited by the driving ability of a RS485 transeiver right? So I must stick to the limit of maximum load of datasheet.
And if I want to achieve 1km, parallel terminated at both end, in a commercial environment, is 9600bps practical?? Or can I go faster/slower??
Any links that I should be reading about RS485?
How do I work out at what point my data-rate will have a reflections problem? Assuming 1km, and I want to use maximum data-rate is allowed, but it must be reliable.At a cable length of 1km, I don't think reflections will be much of a problem at 9600 baud. It is more likely that your signal will be degraded due to IR loss over that distance, and distortion due to the large distributed capacitance of such a long cable. The relatively low impedance of the termination resistors will help to keep the cable from acquiring a DC charge. Using data from a UART you will have runs of 0's and 1's of sufficient length that the cable will develop a DC charge and distort the edges.
While not ideal, I used a 330M box of CAT5 cable, putting the pairs in series, to give +1.2KM test cable.Before you try testing on the actual cable system in the field you might want to put a kilometer of cable on the lab bench and try it out before you go into the field. You can compare waveforms on a scope at both the transmitting end and the receiving end. This is a bit tougher to do in the field.
How do you inject noise into your cable? I am interested.While not ideal, I used a 330M box of CAT5 cable, putting the pairs in series, to give +1.2KM test cable.
Also, I tried injecting noise into one pair for interference testing.
With this setup, you can play around with mismatching to see how it alters the max data rate.
Although it would be better to use the cable intended for the final installation.
Various tests can be tried.How do you inject noise into your cable? I am interested.
120 ohms is a typical characteristic impedance for twisted pair. When you research a cable you actually measure the 'actual' characteristic impedance of several samples. In order to advise you on cable length and datarate I need to know what is producing and consuming the data. At the moment it sounds like a standard UART. You also need to specify an allowable bit error rate. Once you do that you can actually verify that your choices meet or exceed the desired bit error rate.How do I work out at what point my data-rate will have a reflections problem? Assuming 1km, and I want to use maximum data-rate is allowed, but it must be reliable.
You mentioned the relatively low impedance of termination resistors, the RS 485 specs use a 120ohm resistor, were you referring to this? Or do I need to use a lower resister than 120ohm?
Yes, it's a standrad UART, multi-master/node over RS485 configuration. Information is sent/received in a packet. I haven't look into the protocol layer yet, as I need to understand the physical layer first.120 ohms is a typical characteristic impedance for twisted pair. When you research a cable you actually measure the 'actual' characteristic impedance of several samples. In order to advise you on cable length and datarate I need to know what is producing and consuming the data. At the moment it sounds like a standard UART. You also need to specify an allowable bit error rate. Once you do that you can actually verify that your choices meet or exceed the desired bit error rate.
| Thread starter | Similar threads | Forum | Replies | Date |
|---|---|---|---|---|
| N | USB to RS485 DB15 Male Cable | General Electronics Chat | 7 | |
| V | RS485 Architecture | Microcontrollers | 11 | |
| V | Data Mismatch in RS485 communication | Microcontrollers | 3 | |
| B | Any clue what's happening with data with RS485 over Ethernet? It's so strange! | General Electronics Chat | 11 | |
| I | Help in designing HX711 circuit | General Electronics Chat | 0 |