c++ - Serial Mac OS X constantly freezes/locks/dissappears for USB to Arduino -


i have problem c++ code running in xcode both amserial library generic c (ioctl, termios).

after fresh restart, application works after "kill" program serial (i think) not released.

i have checked open files under /dev , have killed connection serial usb there, c++ still can't open usb port.

i have narrowed down being low level mac os x issue, regarding blocking port indefinitely, regardless of closing using aforementioned libraries.

just context, i'm trying send numbers through usb port, serially arduino duemilanove @ 9600 baud. running serial monitor in arduino fine, however, running through c++ application freezes computer, occasionally, mouse/keyboard freeze up: requiring hard reset.

how can problem fixed? seems mac os x not usb friendly!

sorry, answered own question while back! after connect arduino, have include sleep(2) ensure serial connected.


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -