TI has an RS-485 transceiver that automatically corrects for reversed connections.
I wish my mistakes were self-corrected within 76 milliseconds. That's exactly what those of you working on industrial apps can achieve using TI's low-power, half-duplex RS-485 transceiver. Featuring the fastest automatic bus-polarity correction time, the SN65HVD888 will be particularly useful in such industrial applications as e-metering networks, DMX512 networks, HVAC, process control, and industrial automation.
For those of you working on large networks: If you've ever messed up and mis-wired without catching it quickly, you probably know all too well the production delays and price tag of the mistake. This transceiver alleviates the pain from the outset. Hot-plugged, the SN65HVD888 provides cross-wire immunity that is 80 percent faster than what's available now. It detects and corrects the bus polarity within 76 milliseconds of bus idling.
The transceiver performs better and is more reliable in noisy environments. It features better ESD performance, a 15 percent higher large-receiver hysteresis (at 60 mV). It has a low power consumption and the fastest polarity correction time -- 80 percent faster than the closest competing device. Data and samples are available, as is an evaluation module.