Custom USB PC-PC Interface

cablesshort-circuitsynchronoususb

I would like to build a software interface using the usb4java library, for sending triggers for synchronization with the following specifications:

  • Latency below 1 ms
  • Range: 8-bit [0, 255] + bit [0, 1]
  • On the receiving end the bits will be translated to strings (e.g. "S255" or "R128")

I have the following concerns:

  1. For two computers with USB 2.0 ports to be connected with a 3m cable, what cable should I use – bridged or unbridged A/A?
  2. Should I be concerned about risks for short circuiting or otherwise permanent damage to the hardware?
  3. Will a universal USB driver suffice?
  4. What USB device class does a direct PC-PC connection classify as?

Note: I have no prior experience of hardware programming.

Best Answer

  1. A "bridged" cable. Unbridged A/A cables should not be made and may harm your computer (2).

3/4. This depends on your cable. The bridged cables usually pretend to be two Ethernet interfaces joined back-to-back. The exact interface will depend on your manufacturer.

(Implied) This will almost certainly not achieve 1ms latency; you are much better off connecting them with a short gigabit Ethernet cable and achieving synchronisation over that.