Using serial ports

I have seen this behavior before as well, LibSerialPort seemed to occasionally drop specific bit patterns. I had the same problem creating an example, I’m still not sure what is wrong with it.

Julia’s IO system has odd buffering that makes it tricky to use for serial ports.

I ended up using ccall to call open, ioctl, and read directly as needed.