USBUART: Max. length of received message

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ZvVe_2582751
Level 1
Level 1
5 replies posted Welcome! 5 questions asked

Hello,

I'm using USBUART in PSOC5 with FreeRTOS

In USBUART_episr.c I added the following code:

CY_ISR(USBUART_SOF_ISR)

{

     ....

     /* `#START SOF_USER_CODE` Place your code here */

     if (USBUART_DataIsReady()!=0 && USBUART_GetCount ()!=0)

     {

           //Send semaphore to ReceiveTask 

     }

     /* `#END` */

      .....

}

void vReceiveTask( void *pvParameters )

{

         while (1)

         {

                 USBUART_GetData (...)

         }

}

From the PC I want to send one message to the serial port that will be received in USBUART.

What is the maximum message I can send ?

Thank you,

Zvika

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Message length depends on Endpoint setting .As you can check in this Code example as attached the Bulk endpoint have maximum packet length set as 64.

View solution in original post

2 Replies
lock attach
Attachments are accessible only for community members.
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

Message length depends on Endpoint setting .As you can check in this Code example as attached the Bulk endpoint have maximum packet length set as 64.

Hi anks,

Thank you very much for your reply.

Best regards,

Zvika

0 Likes