- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I have a problem. Could somebody help me?
I want to transfer data between PC and Cypress device. The operating system is Ubuntu 16.04.
I can send data to Cypress device and receive response form it. I also need to keep receiveing data from Cypress device.
When I just connect one Cypress device, it works fine. And If there is some problem with transfering data, I will close cypress device by function 'cyusb_close' and open again by function 'cyusb_open'. And I call this as reopen.
But now I need to connect two or more Cypress devices. And I will transfer with them at the same time. So I create two threads. But if I reopen one device to solve some problem, another device will be closed. And sometimes, it will crash when it is transfer data.
I don't know what happens. And I don't know the solution, either.
So could somebody give me some solutions or some advice.
Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As is described in programmers manual, cyusb_close() will close ALL cyusb devices of interest discovered. So, try to use cyusb_reset_device to reset your device instead of closing all devices.
Regards,
Eddie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
May I know the part number of the Cypress device you are using?
Regards,
Eddie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
It is CYUSB3014.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What demo firmware you are using for this test?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't use demo firmware. We design a firmware for our demo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you try with our example firmware to see if the same issue will happen?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks.
I don't think the firmware is wrong. I think maybe there is some problems with libcyusb or libusb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Any update? Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As is described in programmers manual, cyusb_close() will close ALL cyusb devices of interest discovered. So, try to use cyusb_reset_device to reset your device instead of closing all devices.
Regards,
Eddie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK. Thank you very much.
I will try it.