On 2010-11-16, Tosoni <jp.tosoni@xxxxxxxxx> wrote: >> I have seen hardware (kontron pmc-6l) that was capable of switching >> between RS232, RS485 and one other standard by software. >> >> Is such hw common? If so, should we have standard interface? > > I believe it is neither common nor a good thing. People who need multiple interface types disagree with you as to whether it's a good thing or not. > Dynamically switching between electrical levels means that the remote > device must be capable of handling both electrical levels, else it > might be damaged (i.e., when the serial card is configured to RS485 > but switches to RS232 when reset). Nobody said anything about doing it "dynamically", and if you read the manuals for the cards in question, it specifically says not to do that. [Though if you look at the electrical specs for any reputable RS485/422/232 driver/receiver you'll see that they're all spec'ed to withstand that sort of thing without damage.] The way it's done is that the card is installed, the ports are configured, and then the cabling is hooked up. > Or, different pins must be used for RS232 and RS485 (then software > switching is not really useful). That's not usually how it's done. -- Grant Edwards grant.b.edwards Yow! Don't hit me!! I'm in at the Twilight Zone!!! gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html