Skip to content

USB CDC (Serial) write on Leonardo is blocking. [imported] #948

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

Closed
cmaglie opened this issue Nov 15, 2012 · 2 comments
Closed

USB CDC (Serial) write on Leonardo is blocking. [imported] #948

cmaglie opened this issue Nov 15, 2012 · 2 comments
Assignees
Labels
Component: Core Related to the code for the standard Arduino API Type: Bug

Comments

@cmaglie
Copy link
Member

cmaglie commented Nov 15, 2012

This is Issue 948 moved from a Google Code project.
Added by 2012-06-06T13:34:31.000Z by [email protected].
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium, Component-Core

Original description

From Mike King on the developers list:

"Serial_::write uses the function USB_Send to send data. USB_Send is a
blocking function. Is there away to make the virtual serial
connection non-blocking like it was on the Uno? I need to read from
the ADC a 1000 times per second and send the result to a computer for
processing. I measured the virtual serial bandwidth to be between 40
and 45 kBps on the Leonardo. I like to measure the voltage once per
1ms with the smallest "jitter." If I use a blocking write function
then I won't be sampling the ADC a 1000 times per second."

@NicoHood
Copy link
Contributor

NicoHood commented Mar 9, 2016

Actually it is not blocking and this causes another issue:
#3946

@sandeepmistry
Copy link
Contributor

Closing, as @NicoHood mentioned, it does not block (anymore).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Core Related to the code for the standard Arduino API Type: Bug
Projects
None yet
Development

No branches or pull requests

6 participants