Is there a way in software to make a USB to serial adaptor work like it is using a null modem cable while it is actually using a straight through cable?

(Using an off-the-shelf USB to DB9 adaptor for RS232 under windows).

  • 1
    \$\begingroup\$ Which chipset does your adapter have? The three common ones are Prolific PL230x, FTDI or SiLabs CP210x, and now there are standards-based chips on the market, like Microchip MCP2200. \$\endgroup\$ – markrages Jun 14 '11 at 2:55
  • \$\begingroup\$ @markrages - do any of them let you pick which pins are transmit and receive? \$\endgroup\$ – JustJeff Jun 14 '11 at 3:09
  • \$\begingroup\$ Ah, no, now that I think about it. It isn't the USB->serial chip that's the problem, but the transceiver chip (e.g., MAX232). You can completely reprogram the Microchip part, but it will do no good unless the transceiver is rewired too. It's a shame, a null-modem USB->serial would be a useful gadget. \$\endgroup\$ – markrages Jun 14 '11 at 4:23
  • \$\begingroup\$ Yes, the level translator is probably the issue. OTOH, you likely only need three wires. I've done it with paperclips by taping the connectors together and bending the paperclip wire to span the holes. It held up surprisingly well. \$\endgroup\$ – Chris Stratton Jun 14 '11 at 4:44

No probably not. As discussed above the USB->UART part of the converter is not as much of an issue, as is the RS-232 transceiver chip. Since the RS-232 transceiver has dedicated TX and RX there is no way to switch it in firmware.

I agree such a device would be useful in a way similar to Ethernet cards which can auto-sense if you are using cross-over cable or strait cable.

The best solution to your problem would probably be to just buy or build your own null modem adapter.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.