Multi-Channel Serial Ports

Both the DS1101 and DS1102 have a single DB9 connector but offer several RS232 channels. We define a serial channel as including at least the RX and TX signals. The standard serial port has six "important" signals: RX, TX, CTS, RTS, DSR, and DTR. The CTS/RTS and DSR/DTR signal pairs of the DS1101 and DS1102 can alternatively be used as independent serial channels RX2/TX2 and RX3/TX3. If your Modbus device does not require any other signals but RX and TX (as is usually the case), then a single controller can give you three independent RS232 channels! This applies to the DS1101, as well as DS1102 in the RS232 mode. The DS1102 only offers a single channel in the RS485 mode.

RS232 Mapping Options (DS1101 and DS1102)

Tibbo has defined 15 port mapping options (channel arrangements). These are our standard mapping options that we use for all apps that run on DS1101 and DS1102 devices.

Mapping option

Available signals

Pins on the DB9M connector

#2

#3

#8

#7

#6

#4

#1 (DS1101 only)

Option 0

RX/TX/CTS/RTS/DSR/DTR

RX

TX

CTS

RTS

DSR

DTR

---

Option 1

RX/TX/CTS/RTS/DSR/DTR + RX/tx

RX

TX

CTS

RTS

DSR

DTR

RX4

Option 2

RX/TX/CTS/RTS + RX/TX + RX/tx

RX

TX

CTS

RTS

RX3

TX3

RX4

Option 3

RX/TX/CTS/RTS + RX/TX/CTS/rts

RX

TX

CTS

RTS

RX3

TX3

CTS3

Option 4

RX/TX/CTS/RTS + RX/TX/DSR/dtr

RX

TX

CTS

RTS

RX3

TX3

DSR3

Option 5

RX/TX/DSR/DTR + RX/TX + RX/tx

RX

TX

RX2

TX2

DSR

DTR

RX4

Option 6

RX/TX/DSR/DTR + RX/TX/CTS/rts

RX

TX

RX2

TX2

DSR

DTR

CTS2

Option 7

RX/TX/DSR/DTR + RX/TX/DSR/dtr

RX

TX

RX2

TX2

DSR

DTR

DSR2

Option 8

RX/TX + RX/TX + RX/TX + RX/tx

RX

TX

RX2

TX2

RX3

TX3

RX4

Option 9

RX/TX/CTS/rts + RX/TX + RX/TX

RX

TX

RX2

TX2

RX3

TX3

CTS

Option 10

RX/TX/DSR/dtr + RX/TX + RX/TX

RX

TX

RX2

TX2

RX3

TX3

DSR

Option 11

RX/TX/CTS/RTS + RX/tx/CTS/RTS

RX

TX

CTS

RTS

CTS4

RTS4

RX4

Option 12

RX/TX/CTS/RTS + RX/tx/DSR/DTR

RX

TX

CTS

RTS

DSR4

DTR4

RX4

Option 13

RX/TX/DSR/DTR + RX/tx/CTS/RTS

RX

TX

CTS4

RTS4

DSR

DTR

RX4

Option 14

RX/TX/DSR/DTR + RX/tx/DSR/DTR

RX

TX

DSR4

DTR4

DSR

DTR

RX4

As you can see, both the DS1101 and DS1102 have at least three channels: RX/TX, RX2/TX2 (CTS/RTS), and RX3/TX3 (DSR/DSR). The DS1101 additionally has the RX4 line but no TX4. Since Modbus applications require both the RX and TX lines, you can disregard this "half-channel."

Of all the options presented in the table above, two stand out as "very useful" for the Modbus Gateway app:

  • Option 0, because it represents the standard serial port arrangement.

  • Option 8, because it offers three simple serial channels with just the RX and TX lines in each channel (which is usually enough for Modbus devices).

RS422 and RS485 (DS1102 only)

You can only use the mapping option 0 in these modes.