#8789: /bin/read doesn't work for serial communication ---------------------------+---------------------------- Reporter: dsuden | Owner: mmlr Type: bug | Status: new Priority: normal | Milestone: R1 Component: Drivers/USB | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: x86 ---------------------------+---------------------------- Comment (by mmlr): It is not just rumored to work, it actually does, I use it to control my tv via a usb to serial adapter. Note however that when you just use the device node to read from and write to, you are using standard serial line settings that may very well not apply to the device you are talking to. If you want to use it that way you have to configure the line first, using stty (usually with the 'sane' option and then specify the appropriate baud rate). I am not sure that the settings are carried over when reopening a new file handle though, so this might not work. If it does, you can also just redirect anything into and out of the serial device node. Alternatively, a small wrapper program using the BSerialPort API should work. Look in src/tests/kits/device/bserial, there's serial_io that pretty much does that. You could modify it to the settings you need, or better yet implement command line arguments to set them. -- Ticket URL: <http://dev.haiku-os.org/ticket/8789#comment:6> Haiku <http://dev.haiku-os.org> Haiku - the operating system.