Link to home
Start Free TrialLog in
Avatar of margarit
margaritFlag for Israel

asked on

USB packet size C#

Hello,

I am sending packets (string of bytes) from USB dongle to C# GUI.
But when I am sending more than 60 bytes my GUI stack.
I am receiving bytes in GUI using:
         System.Threading.Thread.Sleep(500);
            string Text = "";
            byte[] buff = new byte[255];
            //int tt ;
            port.Read(buff, 0, 255);
Is there any option to define maximum number of bytes that my GUI can get via USB device?
Where can be a problem?

THANKS
ASKER CERTIFIED SOLUTION
Avatar of graye
graye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of margarit

ASKER

THANKS!!!