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

Repeated open/clode of ACM cause crash #72

Closed
Gregwar opened this issue Mar 27, 2013 · 2 comments
Closed

Repeated open/clode of ACM cause crash #72

Gregwar opened this issue Mar 27, 2013 · 2 comments

Comments

@Gregwar
Copy link
Contributor

Gregwar commented Mar 27, 2013

Hi,

If I simply use this code :

    if (SerialUSB.available()) {
        SerialUSB.write(SerialUSB.read());
    }

And I write a python script that just open the port, write some "a" and read the "a"s, if I run this python script many times this cause the crash of the ACM port:

serial.serialutil.SerialException: could not open port /dev/ttyACM0: [Errno 5] Input/output error: '/dev/ttyACM0'

I have the same issue in many cases like this and I don't know exactly what's going on, my computer says :

Mar 27 16:01:38 bob kernel: [17103.998984] xhci_hcd 0000:03:00.0: ERROR no room on ep ring
Mar 27 16:01:38 bob kernel: [17103.998992] cdc_acm 2-1:1.0: acm_tty_open - usb_submit_urb(ctrl irq) failed
Mar 27 16:01:38 bob kernel: [17103.998997] tty_port_close_start: tty->count = 1 port count = 0.

Any idea ?

@Gregwar Gregwar closed this as completed Mar 28, 2013
@poslathian
Copy link
Member

why was this closed? any new information?

@Gregwar
Copy link
Contributor Author

Gregwar commented Mar 28, 2013

Hi,

I figured out that the cdc_acm driver of my computer was the problem since I could not reproduce the bug under other computers

My computer is on Ubuntu 12.04 while the other ones are Debian and works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants