Is there any way to minimize latency in USB communication, to be useful for real time applications like cnc
How can we compare USB2 to USB3 in terms of latency
I use USB2.0 for CNC using a PIC18F4550 as the CNC controller and have not experienced any issues with it. The host PC transfers G-Code instructions to a buffer on the PIC, such that the PIC has a complete movement instruction on chip. The host is always waiting on the PIC (i.e. waiting on the CNC system) so no latency.
I wrote the software myself. The PIC translates G-Code into stepper motion (acceleration, deceleration etc).
I do have Mach 3 but that does not use USB so I rarely use it as it relies on a parallel port which are rare nowadays.