You are here

Multiple usb device to work at same time | Cypress Semiconductor

Multiple usb device to work at same time

Summary: 1 Reply, Latest post by operationred1991_1569406 on 10 Sep 2016 01:04 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
chehailong_1692296's picture
1 post

    I want to ask : can I create two threads for the two usb device, and the two usb devices work at the same time。
    I find (Home › Cypress Developer Community › Forums )
    A developer said : you cannot communicate with two devices at the same time using CyAPI.lib.
    Now, Actually, I use two usb devices, One thread one device, another thread to another device.
    when I open second usb device by USBDevice->Open(1),the first device will be closed?
    in the C++ helpful doc (CyAPI.chm), When Open( ) is called, it first checks to see if the CCyUSBDevice object is already opened to one of the attached devices. If so, it calls Close( ), then proceeds.
    It means that, at first I can't USBDevice->Open(0) in the first thread, and then USBDevice->Open(1) in the second thread.

operationred1991_1569406's picture
62 posts

I think opening one device does not require to close the other. Control center, streamer supports more than device at a time, but data transfer is not possible.

Log in to post new comments.