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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -