OpenQNX :: The QNX Community Portal

Jul 05, 2008 - 12:15 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 43 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Kone
1 Post subject: usb problem with interrupt transfer 1ms  PostPosted: Jan 29, 2008 - 02:24 PM
New Member


Joined: Jan 29, 2008
Posts: 1

Hi everybody,

I want to receive data every 1ms over the interrupt pipe (USB 1.1). I'm using a Cypress development board which sends every ms 2 bytes in a frame. I modified the mouse driver source from the ddk and now I observed a strange behaviour.

I always miss every 2nd frame and the interrupts are only coming every 2ms.

Then I increased the buffer (wMaxPackageSize) up to 16 bytes and then I could see that always the bytes 3 and 4 are missing the rest of the 16 bytes is OK.

The next test I did: buffer to 32 and I got a similar result: bytes 1 and 2 are OK bytes 3 and 4 are missing and the rest is OK again---?????

Does anybody know what's going wrong here??? Is it possible to have more than one buffer, something like double-buffering in the usb stack???

Thanks in advance,
Kone
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.