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:
- 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?
- Should I be concerned about risks for short circuiting or otherwise permanent damage to the hardware?
- Will a universal USB driver suffice?
- What USB device class does a direct PC-PC connection classify as?
Note: I have no prior experience of hardware programming.
Best Answer
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.