Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connecting 2 USB ports together over a "Null Modem" like in the old days with COM ports?

I was curious if anybody knows a way to connect two different computers together over a USB line and what API's exist to program this interface.

For Serial Ports its common to buy a "Null Modem" adapter to cross over the Transmit and Receive lines of the UART so that the computers can talk together. And then You would read and write them like normal windows files over special system files called "COM1", "COM2", etc.

I was wondering if there was an Adapter of some kind that could emulate this same behavior except for native USB protocol. I realize they have USB-to-UART adapters. That's not really what i'm interested in because the baud rate is very slow for uarts. I was looking for something with USB speeds to transfer from one computer to another that is not going over a network link such as ethernet or wifi.

This is what I have: COMPUTER A<-->USB<-->UART<-->NULL_MODEM<-->UART<--->USB<-->COMPUTER B Speed 110,000 Baud, whatever... to slow to transfer files... ok for text...

This is what I want:

COMPUTER A<-->USB<-->Crossover_Adapter<--->USB<-->COMPUTER B Speed 480 megabits per second

Assuming this beast exists, how do you program it and where do you buy it?

like image 987
Bimo Avatar asked Mar 09 '16 02:03

Bimo


People also ask

Can you connect USB to COM port?

Since USB can do the same thing as many COM ports, most computers now lack serial ports. If you need one to satisfy your software, though, USB's benefits don't help you. The solution is to plug a USB to serial adapter into a USB port and set it to act as COM1.

How do I connect two USB ports?

To use more than one USB device with a single USB port, use a USB hub. Hubs are devices that have multiple USB ports. You connect USB devices to the hub, then connect the hub to your computer. You don't need to install any software to use a USB hub.

What is a null connector?

A null modem serial cable (frequently called a crossover cable) is used to connect two DTE devices together without the use of a DCE device in between. For this to happen, the Transmit (TXD) and Receive (RXD) pins on one of the serial connectors are flipped.

What connects to a COM port?

A COM port is simply an I/O interface that enables the connection of a serial device to a computer. You may also hear COM ports referred to as serial ports. Most modern computers are not equipped with COM ports, but there are many serial port devices still in use that use the interface.


1 Answers

The only solution that I know of is the "FTDI Chip USB-to-USB Null modem cable" that can transfer between computers two computers using USB ports at a rate of 3 MBaud (384 kbytes/s) That's a lot faster than using older serial ports with null modem cable that maxs out at say 115200 baud (14 kbytes/s). The FTDI chip cable can be programed in c/c++/c# just like a standard windows serial port by way of a virtual serial port.

http://shop.clickandbuild.com/cnb/shop/ftdichip?op=catalogue-products-null&prodCategoryID=92&title=Null+Modem+Cables

From Their Website:

USB NMC-2.5m

NMC In the era of legacy PCs with onboard RS232 COM Ports, it was common practice to establish a simple communications network between PCs using a cable popularly known as a Null-Modem cable. Typically, such a cable would have DB9 female connectors on each end with the TX / RX and handshaking signals cross-connected so that the PCs could communicate with each other via legacy COM ports.

On modern PCs the legacy COM Port connector is rapidly disappearing as USB becomes the multi-function communication port of choice. However, this presents a dilemma in application areas that previously relied on legacy COM Ports for inter-PC communication.

A convenient solution to the problem is the FTDI USB NMC cable. From the outside, this cable appears to be two USB type “A” sockets wired together, however each of the USB sockets conceal a small PCB with a FT232RQ based USB-UART converter IC plus support components inside. The interconnect cable cross-connects the TXD / RXD data signals, RTS / CTS handshaking signals and interconnects the common GND reference rail betwen the two converter PCBs.

When used together with FTDI’s supplied Virtual COM Port ( VCP ) drivers, the USB NMC cable may be used to establish inter-PC COM Port based communication at baud rates of up to 3M baud. The standard USB NMC cable p/n USB NMC-2.5m comes with an interconnect length of 2.5m ( 8.2ft ) - other lengths may be available on request. Multiple operating systems are supported including Windows, Linux, Mac OS etc. single cable

Another Alternative is to use Bluetooth which is also programmable just like a the older serial port.

like image 99
Bill Avatar answered Oct 05 '22 08:10

Bill