Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/dev/ttyACM busy for the first 15 seconds after plugging [closed]

I have two USB devices which appear as /dev/ttyACMn (a barcode reader and a motor controller). For each of them, when I try to open them in the first 15 seconds after plugging in, I get a "device or resource busy" error. After more than 15 seconds, they open fine. Do you have any idea what's causing it?

I tried using lsof to check if a process is using the device, but it finds no such process (it finds my process after I manage to connect to the device).

I'm currently using Ubuntu 14.04, kernel 3.13.0 64-bit, but I have seen this behavior in earlier Ubuntu versions too.

Thank you very much,

Noam

like image 385
Noam Avatar asked Apr 07 '14 21:04

Noam


1 Answers

I think the problem is ModemManager. It scans serial interfaces on startup to see, if they belong to a modem.

like image 94
yegorich Avatar answered Sep 23 '22 15:09

yegorich