I'm running Linux on the iMX6Q. I have code that accepts a Bluetooth connection on a socket. When I did this on the command line, I could have used stty (stty -F /dev/rfcomm0 raw) to change the default TTY behavior from converting all my LFs to CRLFs. However, now I'm running from code, and /dev/rfcomm0 does not exist. The closest "device" I can find is /dev/bus/usb/001/002, but I cannot run stty on that device. When I send a line-feed in the data stream, the tty interface seems to change it to \r\n. The result is that my length field is incorrect. The protocol does not include \r, so it is not sufficient for me to just bump the length.
I've looked at the supported ioctl controls and found nothing. Open to any and all suggestions.