USB packet size C#

Posted on 2009-04-30
Last Modified: 2013-12-17

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:
            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?

Question by:margarit
    LVL 41

    Accepted Solution

    That's highly dependent upon the device..  For example, I rather doubt a dongle would be a high-speed device.   If not, then the maximum packet size for a bulk transfer operation is 64 bytes
    Here is an excellent web site that goes into all of the gory details:

    Author Closing Comment


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now