On 12/29/2013 07:24 PM, Scott Talbert wrote: > I have been doing some more debugging on the Windows issue with config > dumps. On Windows, what I've found is that we're losing packets from the > remote. In the MH config dump code, I wasn't actually checking the > sequence numbers coming from the remote, but I added some code to do that, > and sure enough, I'm seeing a gap in sequence numbers. So, the packets > are getting lost somewhere, which sounds *very* similar to what you're > seeing on Mac. > > I'm still not sure how to fix the problem though. At first, I thought it > might be because we were spending too much CPU time in the callback > function (writing status to the screen) and missing packets, but that > didn't seem to be the problem. Then, I tried increasing the packet buffer > size - this required a changed to HIDAPI - but that didn't seem to help > either. > > It is weird, though. For some reason, the remote seems to send packets to > us much faster to us on Windows that on Linux. According to the info I've > found, it seems that the Windows HID driver continuously requests reports > from the interrupt IN endpoint and stores them in a buffer. If the buffer > is full, it will drop the oldest packet. I think this is how we're losing > packets on Windows but I'm still not sure how to fix it yet.
Well - so on Windows and Mac we're using hidapi-raw, and on Linux we're suing hidapi-lubusb. It'd be interesting to see if we have the same problem if we can make hidapi-raw work on Linux. It may be something that libusb is doing that slows things down or works differently. -- Phil Dibowitz p...@ipom.com Open Source software and tech docs Insanity Palace of Metallica http://www.phildev.net/ http://www.ipom.com/ "Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind." - Dr. Seuss
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________ concordance-devel mailing list concordance-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/concordance-devel