Description
This is very similar to #4094 . I am using Arduino DUE with OS X running El-Capitan. The OS detects the CDC port properly and I can "cat" out the USB data transmitted by the Arduino through the file /dev/cu.usbmodemxxxx. However, if I break and then re-run the "cat" command, I read nothing (does not give me a resource busy, it just doesn't read anything).
Tried on latest Hourly build 1.6.8 from Arduino website. Also tried the patch to CDC.cpp in #4094
Tried the following:
-
Disconnect and reconnect USB allows me to read data again, even if the Arduino is still powered on through the Programming port and is still running the code continuously.
-
Suspecting OS X driver, I unloaded and re-loaded the following USB kernel extension tree. Did not help:
com.apple.driver.usb.networking
-> com.apple.driver.usb.cdc
-> com.apple.driver.usb.cdc.ecm
-> com.apple.driver.usb.cdc.acm -
The same thing happens with the Arduino GUI serial monitor: It works the first time, but then closing it and opening it again does not help. I have to either reset the Arduino code or disconnect/reconnect the USB