AnsweredAssumed Answered

usbd_lib_cdc example support large data packet?

Question asked by Pulverizadoras FIUNER on Jul 5, 2016
Latest reply on Jul 13, 2016 by Pulverizadoras FIUNER

Hi everyone,

                    Im using Embedded Artist Base Board with LPC1769.. I want to transfer data from LPC (end device) to PC (Host) using Bulk transfer.. I need a data rate upto 1 megabyte/sec. I started with usbd_lib_cdc (LPCOPENv2.1) all works fine.. but when I want to send more than 64bytes I dont receive anything on Host..

while (1) {

        /* Check if host has connected and opened the VCOM port */

        if ((vcom_connected() != 0) && (prompt == 0)) {

            vcom_write("Hello World!!\r\n", 15);

            prompt = 1;

        }

        /* If VCOM port is opened echo whatever we receive back to host. */

if (prompt) {

            rdCnt = vcom_bread(&g_rxBuff[0], 256);

            if (rdCnt) {

                if(g_rxBuff[0]=='S')

               {

                    vcom_write("Hello Host I'm LPC1769!! I want to send more than 64 bytes, but", 63); // works!

                    //vcom_write("Hello Host I'm LPC1769!! I want to send more than 64 bytes, but i cant do it!", 77); // dont work.

               }

            }

        }

        /* Sleep until next IRQ happens */

        __WFI();

    }

 

any suggestions?

Thanks a lot!

(sorry my bad english)

Outcomes