- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello again, everyone!
So, I'm trying to send a lot of data from my computer to the PSoC5LP so I'm sending it via the USBUART. The example showed the USBUART to be 64 bytes (words?) so I changed this number to 200. My program wasn't acting like I expected so I looked at what's in the buffer and it seems to be clipping past buffer[63]. Is there a way to expand the USBUART buffer size, either in the module or the *.ini file? Or is this just a limit to the communication protocol?
If anyone knows, that would be awesome. The complication of my code goes up pretty quick if I have to send the data separately so I'm hoping it's possible to expand the buffer size. Thanks!
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jeremy,
please check if these threads are of any help:
Re: How to configure USBFS in audio IN mode with DMA automatic buffer management ?
Maximum Packet Size in Store-and-Forward mode / Cut through mode USB transfer in PSoC 5LP
/odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
maybe so?
extern uint8 myImage[];
.........
for(i=0;i<ArraySize/64;i++)
{
while(USBUART_CDCIsReady() == 0u){}; // Wait till component is ready to send more data to the PC
USBUART_PutData( &myImage[64*i] ,64); // send 64 byte to USBUART
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jeremy,
please check if these threads are of any help:
Re: How to configure USBFS in audio IN mode with DMA automatic buffer management ?
Maximum Packet Size in Store-and-Forward mode / Cut through mode USB transfer in PSoC 5LP
/odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jeremy,
Typically, to send 'a lot' of data, USB bulk transfer is used.
my estimate of standard USBUART transfer speed is ~1Mbaud. Alternative to USBUART is to use PSoC UART set to high speed