Skip to content

A small linux utility to control a powerswitch via DTR line on UART

License

Notifications You must be signed in to change notification settings

bogofki/SerialPowerSwitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

SerialPowerSwitch

A small linux utility to control a powerswitch via DTR line on UART

Usage example to power on: ./SerialPowerSwitch /dev/ttyUSB0 1

Note: This program does not restore the termios settings on quit as most others do.

View below is Male connector (PC side)

    1 2 3 4 5
  -------------
  \ O O O O O /
   \ O O O O /
     -------
     6 7 8 9
Pin Function Signal Name DTE (PC)
1 DCD Data Carrier Detect in
2 RXD Receive Data in
3 TXD Transmit Data out
4 DTR Data Terminal Ready out
5 GND Signal Ground -
6 DSR Data Set Ready in
7 RTS Request to Send out
8 CTS Clear to Send in
9 RI Ring Indicator in

About

A small linux utility to control a powerswitch via DTR line on UART

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages