Im using the serialport
gem which has done a good job for me so far. But now I realized the flow_control is simply not working. First I thought its a problem of my usb rs232 adapter but it isnt. I tried it with an onboard rs232 interface and it failed too. Im using the newest version of debian and ruby 1.9.3.
Im initializing the serialport like this:
sp=SerialPort.new("/dev/ttyS0")
sp.baud=300
sp.data_bits=7
sp.flow_control=SerialPort::HARD
And its initialized without any errors but when I try to send some data I dont get any answer and there is no handshaking done. Am I doing sth. wrog?
// When I send a command the device answers:
DC4 (CTRL T) -0> IEC-0INTERPRETER (MIT ECHO)
DC2 (CTRL R) -0> IEC-0INTERPRETER (OHNE ECHO)
DC1 (CTRL Q) -0> MONITOR10
So data bits, stop bits and baud rate are okay but the answer seems to "ask" me to change some settings?!