This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB2ANY: USB2ANY.dll

Part Number: USB2ANY

Tool/software:

Dear Texas,

                    We are facing issues in sending bulk amount of i2c data nearly 256 bytes at a time.

                     Upto sending 50 bytes at a time is not giving any issues, when we try to send more of it throws error as errno : -30, Too much data.

                     Is there any solution to send more than 50 bytes (256 expected) at a time.

                     API name : USB2ANY_SDK_API int __stdcall u2aI2C_RawWrite(U2A_HANDLE handle, UInt16 I2C_Address, Byte nBytes, Byte Data[]);

  • This isn't possible. USB2ANY communicates with the host PC using the HID device class, which constrains the maximum packet size to 64 bytes per USB transaction, of which some bytes are reserved for command headers and other overhead. There is also no API on USB2ANY to write I2C data from USB2ANY memory, so you cannot pre-load data and later write from memory in a 256-byte burst.

    An alternate I2C interface is required for sending 256 bytes at a time.