Question about Computers & Internet
This is an urgent request for help. I need to make a special use of rts pin of a serial port without affecting normal data transmission via TXD and RXD. The environment is Linux. Can you advise how to realise this in Linux?
Many thanks in anticipation,
Tips for a great answer:
Feb 21, 2015 | Computers & Internet
May 20, 2014 | Computers & Internet
Linux offers various tools. Linux uses ttySx for a serial port device name. For example, COM1 (DOS/Windows name) is ttyS0, COM2 is ttyS1 and so on.
Task: Display Detected System's Serial Support
Simple run dmesg command
$ dmesg ' grep tty
[ 37.531286] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 37.531841] 00:0b: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 37.532138] 0000:04:00.3: ttyS1 at I/O 0x1020 (irq = 18) is a 16550A setserial command
setserial is a program designed to set and/or report the configuration information associated with a serial port. This information includes what I/O port and IRQ a particular serial port is using, and whether or not the break key should be interpreted as the Secure Attention Key, and so on. Just type the following command:
$ setserial -g /dev/ttyS
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4 /dev/ttyS1, UART: 16550A, Port: 0x1020, IRQ: 18 /dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4 /dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
setserial with -g option help to find out what physical serial ports your Linux box has.
Feb 28, 2011 | Computers & Internet
Feb 19, 2010 | Tally MT645 Printer
Jan 25, 2010 | Computers & Internet
Mar 26, 2009 | Lenovo ThinkPad X41 Tablet PC
Oct 29, 2008 | HP LaserJet 4 plus Printer
Feb 22, 2008 | Epson PhotoPC 500 Digital Camera
Jan 28, 2008 | Avocent CPS 1600 Networking Switch
Sep 05, 2005 | Casio Cassiopeia E-200 Pocket PC
76 people viewed this question
Usually answered in minutes!