I'm using USBFS component and I wrote program that I'm sending data from the PC to the PSoC 3 device (I configured as a HID device) and getting the same data back to the PC. In the PC I'm using Libusb 1.0 library. I was able to have the connection, but I cannot send more then 1 byte data, when I'm trying to send for example 2 bytes, it only sends the last 1 byte. Is it possible to send more then 1 byte and how? What should I change (maybe in HID descriptors)?
If your purpose is just send data and loop back, USB-UART is a most easy way. I don't know about Libusb library. You can also use CyCUS.dll liblrary that Cupress provided. And you can test transfer-status of PSoC by "CyControl.exe" that is the USB Control Center.
Yes I did it using Control Center and USBFS component and was able to send more then 1 byte and recieve. When I changed the class into HID I was already unable to use Control center, because data to sent wasn't active. I need configure PSoC 3 as a HID device. I'm using Libusb, because it's allowed to be used in different operating systems.