beautypg.com

Connecting serial devices, Rocketport serial port connectors, Db9 connectors – Comtrol DM ATS-LNX User Manual

Page 15: Building additional db9 loopback plugs

background image

PC104 RocketPort Option

15

Connecting Serial Devices

config.flags &= ~ROCKET_MODE_MASK;
config.flags |= ROCKET_MODE_RS485;
ioctl(fd, RCKP_SET_CONFIG, &config);
}

For a more detailed example, see the setrocket source code available in the Linux
driver at

ftp://ftp.comtrol.com/RPort/Drivers/PC104/Linux

.

Connecting Serial Devices

There is a remote possibility that connecting a peripheral using the wrong
configuration (RS-232 device connected to a RS-422 configured port) could
damage the peripheral. Configure each serial port specifically for the peripheral
that will be connected prior to connecting the peripheral to the ATS-LNX.

Connect your serial devices to the configured ports using the appropriate cables. If
you need to build cables, see

RocketPort Serial Port Connectors

on Page 15.

RocketPort Serial Port Connectors

The following subsections illustrate the pinouts for the quad- and octacable
connector types and how to build loopback plugs for testing serial ports.

DB9 Connectors

This illustrates
the pinouts for
DB9 quad- or
octacables.

Building Additional
DB9 Loopback Plugs

Loopback connectors are DB9 female serial port plugs that you can use to test
serial ports. The ATS-LNX is shipped with a a single loopback plug (RS-232/422)
that corresponds to your quad- or octacable type.

Note: You can run loopback tests with minicom.

Wire the following pins together to build additional plugs or replace a missing RS-
232 loopback plug:

Pins 1 to 4 to 6

Pins 2 to 3

Pins 7 to 8 to 9

Wire the following pins together for an RS-422 loopback plug:

Pins 2 to 3

Pins 7 to 8

Pin 1

Pin 6

RS-232

RI
CTS
RTS
DSR

GND
DTR
TxD
RxD
CD

Pin 1

Pin 6

RS-422

Not used
RxD+
TxD+
Not used

Not used*
Not used
TxD-
RxD-
Not used

Pin 1

Pin 6

RS-485

Not used
Not used
TxD/RxD+
Not used

Not used*
Not used
TxD/RxD-
Not used
Not used

* Pin 5 is tied to ground on the board,

but is not used in the cable.

Pin 1

Pin 5

Pin 6

Pin 9

RS-232 Only
(Back View)

The RS-232 loopback plug
also works for RS-422.

Pin 1

Pin 5

Pin 6

Pin 9

RS-422 Only
(Back View)