Hello All, I am working on a CNC controller card which uses USB for communication with PC. CNC system is having AC drives, Stepper motors, Heavy contactors which generates large noise (EMI). The card is optically isolated, USB cable is also shielded.
But some time USB hangs means -> PC application software hangs
1) Then I have to unplug the USB cable & re-plug it, OR 2) By disabling and re-enabling the USB driver in device manager Application software starts running.I am using Silab C8051F340 processor. While in this situation my processor never hangs, it responses to external IO's. So
-> I am confused when USB communication stops whether Host USB controller hangs or Slave USB or both hangs.
-> I want software solution for this problem means, I detect the this condition, either Slave side or Host side then I will reset the USB communication.
Regards, Kishor.