I'm trying to understand the difference between USBSerial_BigBuffer userial(myusb, 1) and USBSerial userial(myusb) and how it effects my project. The project I'm working on has the Teensy attached to a 3d printer through USB host. There is a command I can send the printer that will return a large block of data and while returning the data I believe I'm running into a buffer overrun. The data is being passed to another device through Serial1. I have the serial1 tx\rx buffers at 1024 which should be enough, but I'm capped at 1024 by the other device.
My question is, I see in Serial.ino it says that BigBuffer is good to 512 bytes, will this impact my project if the userial is returning more than 512? Can I do anything to increase the buffer size of userial beyond 512? Do I understand this correctly or am I missing something altogether?
I can provide my code if that will help. I'm fairly new to the hobby and USB protocols. Thanks.
My question is, I see in Serial.ino it says that BigBuffer is good to 512 bytes, will this impact my project if the userial is returning more than 512? Can I do anything to increase the buffer size of userial beyond 512? Do I understand this correctly or am I missing something altogether?
I can provide my code if that will help. I'm fairly new to the hobby and USB protocols. Thanks.