Finally got the problem solved, (sorry for the chaos.)
problem was i incorrectly used "libusb_control_transfer_get_data" instead of transfer->buffer and that was contributing to the +8. instead of sending the whole source (ie WIP, untested mostly), when i wrote a new program (to share), it didnt showed the error, and finally found the differential. :).
Thank You.

On 06/03/2014 12:08 AM, Tim Roberts wrote:
Kuldeep Singh Dhaka wrote:

Im facing a weird problem.
i have a ST uC (FS usb) that send data of ADC (12 bit) at 176Kilo samples at bInterval=1; (2bytes for 1 sample)
ie 352byte isochronous endpoint requested every 1ms

when i request 1000 packets (each of 352 bytes), i received 8byte garbage value (mostly 0x00) at the end of the 999th packet (assuming packet index start from 0). when i request 500 packets (each of 352 bytes), i received 8byte garbage value (mostly 0x00) at the end of 499th packet. when i request 100 packets (each of 352 bytes), i received 8byte garbage value (mostly 0x00) at the end of 99th packet. when i request 10 packets (each of 352 bytes) i received 8byte byte garbage value (mostly 0x00 | non-zero on offset 1 byte of garbage start) at the end of 9th packet. (non-zero garbage value position is 352 - 8 + 1).

Can you show us your code? It's difficult to imagine how anything below your application could cause this.
--
Tim Roberts,t...@probo.com
Providenza & Boekelheide, Inc.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech


_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel


--
*Kuldeep Singh Dhaka*
+91-8791676237
Programmer, Open Source, Embedded System, Entrepreneur, System Administrator, Animal Lover, Web Developer, Learner. My GnuPG Public Key <http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x23816C5609DC7E26>
Fork Me <http://github.com/kuldeepdhaka>
Bitcoins Accepted.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to