Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB reads sometime return garbage #78

Closed
terrillmoore opened this issue Apr 13, 2019 · 1 comment
Closed

USB reads sometime return garbage #78

terrillmoore opened this issue Apr 13, 2019 · 1 comment
Assignees
Labels

Comments

@terrillmoore
Copy link
Member

In a long USB command session, whenever you wrap around 256 characters of input, the routine to get the number of bytes available returns a wild number, and Serial.read() similarly returns a bunch of while (somewhat historical) data. I think the problem is that the byte count is wrong, and then Serial.read either returns historical data or the contents of the tx ring buffer.

@terrillmoore terrillmoore self-assigned this Apr 13, 2019
@terrillmoore terrillmoore changed the title USB reads return garbage USB reads sometime return garbage Apr 13, 2019
@terrillmoore
Copy link
Member Author

@dhineshkumarmcci , @Lakshmipriya233 , please see if you can come up with a simple test to duplicate this, so we can know when we've fixed this. Probably it involves a simple app using Catena-Arduino-Platform and sending repeated echo 123456.... commands using cut and paste and TeraTerm.

chwon64 added a commit that referenced this issue Dec 23, 2019
Fix #78: Fixed receive buffer size boundary check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants