🖥️ Simpleterm - tool to check serial

The USB to TTL serial leads have a sub-set of the signals found on the DB9 connectors.

This pages uses the WEB serial API to set/reset DTR and RTS, and poll the DSR,CTS,DCD and RI inputs.

I connect an LED and resistor to check. The signals are active low.

A recent purchase had 6 pins: GND, CTS , 5V , TXD , RXD , DTR ( normally RTS ? )

I looped back TX to RX, and DTR to CTS, and record this:

CTS: follows input pin. These are hardwired: DCD: false , Data Set Ready: false , RI: false

Another: [ -- 5V  -- ] [ -- gnd -- ] [ -- RXD  -- ] [ -- TXD  -- ] [ -- RTS  -- ] [ -- CTS  -- ]

inputs hardwired to DCD: true Data Set Ready: true RI: true ]

It was thought that RS-485 dongles would need the use of DTR/RTS to enable the line driver when sending octets, but in the end the USB chips work out when to enable the line drivers.

Some use a CH343G chip others use the CH340 chip . They work out when to enable and disable the line drivers and receivers.

Another page to drive Modbus: webpage used to drive modbus device over RS-485

terminal.pollSignals(): CTS,DSR,RI,DCD:-

The signal names go back to the early days when modems were very simple modulator/demodulators.

Terminal(DTE): DTR - to - Modem(DCE): DSR - terminal plugged in and powered up ready

Terminal(DTE): RTS - to - Modem(DCE): CTS - used in duplex protocol.

Modem( DCE ): RI - to - DSR - Ring Indicator - incoming call

Modem( DCE ): CD - to - DSR - modem carrier detect.

Connected Little Boxes documentation
Hull Pixelbot documentation

The USB to TTL serial leads have a sub-set of the signals found on the DB9 connectors.

It uses the WEB serial API .

This page can set/reset DTR and RTS, and poll the DSR,CTS,DCD and RI inputs. The USB to TTL serial leads have a sub-set of the signals found on the DB9 connectors. It was thought that RS-485 dongles would need the use of DTR/RTS. It uses the WEB serial API . It records some information about lead colours.

RS-232 lead from eBay - top

I brought an RS-232 lead. The DTR goes low when I connect the com port. CTS is an input. Connect an LED via a resitor to test the pin.

	
 	 | GND	- black				
 	i{ CTS	- 
 	o| 5v	- red
 	o} TXD	- green
 	i{ RXD	- white	
 	o} DTR	- ? more often RTS.
 	
 	
 Some cables use these colours.
 Each cable is 1.0m long and supports a data transfer rate up to 3 Mbaud
  
 Red wire: 5V
 Black wire: GND
 White wire: RXD
 Green wire: TXD
 Yellow wire: RTS
 Blue wire: CTS
 
 -- -- 5V
 -- -- gnd
 -- -- RXD
 -- -- TXD
 -- -- RTS
 -- -- CTS

Modems - information and history about RS-232 leads

webpage used to drive modbus device over RS-485

The mode command can be used to set up handshakes. It sets up sensitivity.

 C:\Users\dough>mode -?
 Configures system devices.
 
 Serial port:       MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s]
                                 [to=on|off] [xon=on|off] [odsr=on|off]
                                 [octs=on|off] [dtr=on|off|hs]
                                 [rts=on|off|hs|tg] [idsr=on|off]