Code:
//from the command line, set a USB serial adapter, then interact, ctrl-c to exit stty -F /dev/ttyUSB0 ospeed 57600 ispeed 57600 raw cat /dev/ttyUSB0 & cat > /dev/ttyUSB0
//from the command line, set a USB serial adapter and send and receive data stty -F /dev/ttyUSB0 ospeed 57600 ispeed 57600 raw echo -ne '?' > /dev/ttyUSB0 cat -v < /dev/ttyUSB0+
file: /Techref/os/linux/serialcmds.htm, 0KB, , updated: 2017/9/27 10:37, local time: 2024/11/21 04:58,
owner: JMN-EFP-786,
3.145.102.18:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/os/linux/serialcmds.htm"> Linux Command line Serial Communications</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.