MES9000 series
−
Instruction manual v1.1
40
© ads-tec Industrial IT GmbH • Heinrich-Hertz-Str. 1 • 72622 Nürtingen • Germany
7.8 RS232
Hardware configuration
(The figure shows the socket inside the device)
From the perspective
of the device:
Pin 2
RxD
Receive Data - Data reception cable
line
Input
Pin 3
TxD
Transmit Data - Transmission cable
line
Output
Pin 5
GND
Ground - Reference potential
Configuration of the "WhlHsUart" driver
As of 12/2021, the following IOCTLs are implemented in the driver for the RS232 interface:
−
IOCTL_UARTTESTTOOL_OPEN
−
IOCTL_UARTTESTTOOL_CLOSE
−
IOCTL_SERIAL_SET_BAUD_RATE
−
IOCTL_SERIAL_GET_BAUD_RATE
−
IOCTL_SERIAL_SET_MODEM_CONTROL
−
IOCTL_SERIAL_GET_MODEM_CONTROL
−
IOCTL_SERIAL_SET_LINE_CONTROL
−
IOCTL_SERIAL_GET_LINE_CONTROL
−
IOCTL_SERIAL_SET_CHARS
−
IOCTL_SERIAL_GET_CHARS
−
IOCTL_SERIAL_SET_HANDFLOW
−
IOCTL_SERIAL_GET_HANDFLOW
−
IOCTL_SERIAL_GET_MODEMSTATUS
−
IOCTL_SERIAL_GET_DTRRTS
−
IOCTL_SERIAL_GET_MODEMSTATUS
−
IOCTL_SERIAL_GET_COMMSTATUS
−
IOCTL_SERIAL_GET_PROPERTIES
−
IOCTL_SERIAL_SET_FIFO_CONTROL
−
IOCTL_SERIAL_GET_STATS
−
IOCTL_SERIAL_CLEAR_STATS
−
IOCTL_SERIAL_PURGE
−
IOCTL_SERIAL_SET_TIMEOUTS
As the IOCTLs
IOCTL_SERIAL_SET_WAIT_MASK
and
IOCTL_SERIAL_ WAIT_MASK
have not been
implemented in this version of the driver, it does
not
generate
events
such as RXCHAR, RXFLAG,
TXEMPTY, CTS, DSR, RLSD, BREAK, ERR, RING, PERR.
For this reason, user programs should not wait for events; instead, they should
poll
the
data via read
operations
.
Detailed instructions for the driver "
WhlHsUart
" can be requested from ADS-TEC
support.