#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    1
    Rep Power
    0

    USB data receiving


    Hi,

    Imagine i have 3 devices each one connect by usb, and they are sending information continuously.
    Now, i've got 3 threads, one for each port, to deal with the information i receive.

    Is it possible that i may loose some bytes?
    If some, is there any way to make this a little more "real time"?

    thank you
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,381
    Rep Power
    1871
    The USB hardware and kernel driver will do enough to make sure you see a reliable link at your userspace code layer.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper

IMN logo majestic logo threadwatch logo seochat tools logo