This content has been marked as final. Show 3 replies
FX2LP is high speed peripheral device. It does not have the required hardware to support as a host. So it is not possible to request data from webcam through the usb port.
Thank you for your input, I see there's no way around this and I can't make the 2 devices communicate. Therefore I decided to use a PC in between. I'm getting the videostream from the usb webcam using a C# simple application and I want to send it to my FPGA board with FX2 chip.
Unfortunately I got stuck when trying to send the data over to the FX2. I looked over the docs about FX2 firmware, also analysed the Screamer application provided in the developer's kit, but I still cannot figure out how to send the data.. actually how to talk to the driver (cyusb.sys). Do you have any other example or info which could help me out?
I spent some more time reading the documentation for CyUSB.NET. As I see, I can use the class CyIsocEndPoint and maybe the XferData member (which sends or receives x bytes from a specified buffer) to initiate and complete a transfer. Now, I can't figure out how to send the constant stream captured from the webcam using DirectShow.
I do not know if this is possible, or how I can use this buffer to store stream and forward it to the Cypress device.
I would appreciate any code, pseudo-code or explanation which can do this (either completely redirect the stream to the cypress device, or use 2 alternative buffers to store it and send it at certain time intervals).
I believe there is an easy way to do it but C# is not my strongpoint.