|
SERIAL DATA TRANSMISSION FOR M5-SENSORS
Operating InstructionsThe RTS-mode is faster in transmitting data. Using this mode only is queried the ready-to-send signal of the computer. It is standing on high as long as the computer is ready ot receive data.
That means, that after a reading request to the COM-Port, data are transmitted until the COM-Port is de-activated again.
At slow evaluations and high baudrate it is possible that the COM-buffer gets full.
This can happen either at a quick reading, or according to the programme example as shown below A3.4 when closing the COM-ports.
if(obuf->mode & OUTPUT_HFLOW_OFF) {
obuf->mode &= ~OUTPUT_HFLOW_OFF;
/*
* turn off RTS
*/
dev->modem_control &= ~0x02;
outp(dev->iobase+4, dev->modem_control);
}if(obuf->mode & OUTPUT_HFLOW_ON) {
obuf->mode &= ~OUTPUT_HFLOW_ON;
/*
* turn on RTS
*/
dev->modem_control |= 0x02;
outp(dev->iobase+4, dev->modem_control);
}
E-mail: info@telesys.ru