Quantcast
Channel: Cypress Semiconductor - USB - Known Problems and Solutions
Viewing all articles
Browse latest Browse all 153

anyone tried use cypress device with multiple threads?

$
0
0

Hi, i am using cypress api with multiple threads.

i have tried those threads one by one.

they can individually work perfectly. 

the problem is, i could not run two thread at the same time. 

currently, i initial TWO CcyUSBdevice instances. they point to the same one usb device.

for example, 

In thread 1, i have:

Ccyusbdevice1->endpoint[0]->xferdata...blablabla

In thread 2. i have:

CCyusbdevice2->endpoint[1]->xferdata...blablabla

both two transfers are delayed. 

(actually, if i initial ONE CcyUSBdevice instance, and visit its endpoint[0]and endpoint[1] in two separated threads, would lead the same delay problem.)

 

my co-worker assure me that these two bulk endpoints have two separate buffers.

and i cam make sure these two threads have no common buffer.

so, is there anything i missed? 

 

 

 

__________________________________________another question____________________

can i transfer data with 1000hz? i am using it to transfer IMU data.

i found, in most case the transfer costs 1ms, but sometimes costs 6ms and more.

 

 

 

 

 

Thanks~~~~~


Viewing all articles
Browse latest Browse all 153

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>