I have a USB FTDI serial device that connects to the BBB and it shows up under /dev/ttyUSB0.
After bootup If I try connecting to the device via a c program I get an error “11 - Resource temporarily unavailable”.
However, if I first connect to the device using something like “screen” or “minicom” then kill the process, I am able to use my c program to access the serial device without any problems.
Is there some sort of initialization script I need to run in order to access the USB serial device?
If I use stty -F /dev/ttyUSB0 -a I get
speed 230400 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb -cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke