Linux RS-485 Direction Control: Verify RTS Polarity and Turnaround on the Wire
A successful RS-485 configuration ioctl does not prove that the transceiver drives and releases the bus at the correct times. Qualify direction control with two records: the settings actually accepted by the driver and a capture that relates those settings to UART data, driver enable and the differential bus. Treat unsupported controls as a capability…