Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: bmadsen on December 13, 2011, 11:03:55 AM

Title: USB communication error codes
Post by: bmadsen on December 13, 2011, 11:03:55 AM
Hello

We are trying to use TE0300 via USB. The function TE0300_SetData in the TE0300DLL.dll can return some error codes. So far we have figured out that 995 is a timeout, but we get the error code 31 now, and it would be really helpful to know what this error means.
In fact any documentation on the USB functions in general would be lovely.

Thanks, Bjørn
Title: Re: USB communication error codes
Post by: Ales Gorkic on December 13, 2011, 12:07:20 PM
Dear Bjoern,

The returns are standard Windows IO operation error codes. The one I know are:
      //ret=995 ERROR OPERATION ABORTED - The IO operation has been aborted because of of either a thread exit or an application request (timeout)
      //ret=31 ERROR_GEN_FAILURE - A device attached to the system is not functioning
If you get error code 31 then the device is no longer accessible.

I agree that documentation on this topic is not good. We are trying to fix this with new edition of drivers and API.

Best regards,

Ales
Title: Re: USB communication error codes
Post by: Thorsten Trenz on December 13, 2011, 12:12:13 PM
Hi,
API Documentation is here:
http://docs.trenz-electronic.de/Trenz_Electronic/products/TE03xx/documents/UM-TE_USB_API.pdf

We will add error codes soon.

best regards
Thorsten Trenz

Title: Re: USB communication error codes
Post by: Ales Gorkic on December 13, 2011, 12:15:22 PM
Hi,

Here are the error codes listed:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382%28v=vs.85%29.aspx

Best regards,

Ales
Title: Re: USB communication error codes
Post by: bmadsen on December 13, 2011, 12:51:24 PM
Thanks a lot.

Apparently our error was fixed by unplugging and replugging the USB cable. But thanks for the references for the future.

Regards, Bjørn
Title: Re: USB communication error codes
Post by: Hengist on April 11, 2014, 06:28:44 PM
The release of the third generation Trenz Electronic USB FX2 Suite made this post obsolete. Please access current documentation and resources here: TE USB FX2 Suite (https://wiki.trenz-electronic.de/display/TEUSB/).