XR2ACM0(1) General Commands Manual XR2ACM0(1) NNAAMMEE xr2ACM0 - serial port ttyACM0 communication SSYYNNOOPPSSIISS xr2ACM0 [-d device] [-i infilename] [-l lockfile] [-o outfilename] [-v] DDEESSCCRRIIPPTTIIOONN Xr2ACM0 is for asynchronous raw serial port communication. The default port is /dev/ttyACM0 at 9600 baud. The default semaphore lock file is /var/lock/LCK..ttyACM0, which has an fcntl(2) advisory lock applied, also. The serial port is controlled through termios(3), and is restored to original values on exit. The serial port child read process is cre‐ ated by fork(2) from the parent write process, and both processes respond to SIGINT = ^C and SIGTERM signals. Asynchronous serial port control is implemented with select(2). The input file, (usually stdin,) uses noncanonical input for flow control. This program is the same as sprawACMO(1), except that extended keyboard characters, (the Arrow and Page keys,) are enabled, to approximate the buttons on the Xfinity XR2 remote. The program is intended to provide a simple, and reliable, serial port communication between a computer and a simple device. OOPPTTIIOONNSS --dd ddeevviiccee Device name, (/dev/ttyACM0). --ii iinnffiilleennaammee Input filename, (stdin). --ll lloocckkffiillee Lock file name, (/var/lock/LCK..ttyACM0). --oo oouuttffiilleennaammee Output filename, (stdout). --vv Print the program's version information WWAARRNNIINNGGSS The termios(3) and fopen(2) settings tested only on Linux 2.4, and on US Robotics 56K, V.92, and, 33.6 Sportster. No others were tested. The semaphore locking mechanism uses fcntl(2), and may not be compatible with other serial programs. SSEEEE AALLSSOO spcid(1), spgettermios(1) spsettermios(1), spttyS0(1), spttyS1(1), xr2ACM0(1), sprawS1(1), phone.sh(1) DDIIAAGGNNOOSSTTIICCSS Error messages for incompatible arguments, inaccessible files, and opening and closing files. AAUUTTHHOORRSS ---------------------------------------------------------------------- A license is hereby granted to reproduce this software source code and to create executable versions from this source code for personal, non-commercial use. The copyright notice included with the software must be maintained in all copies produced. THIS PROGRAM IS PROVIDED "AS IS". THE AUTHOR PROVIDES NO WARRANTIES WHATSOEVER, EXPRESSED OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY, TITLE, OR FITNESS FOR ANY PARTICULAR PURPOSE. THE AUTHOR DOES NOT WARRANT THAT USE OF THIS PROGRAM DOES NOT INFRINGE THE INTELLECTUAL PROPERTY RIGHTS OF ANY THIRD PARTY IN ANY COUNTRY. Copyright (c) 1994-2018, John Conover, All Rights Reserved. Comments and/or bug reports should be addressed to: john@email.johncon.com (John Conover) ---------------------------------------------------------------------- June 18, 2018 XR2ACM0(1)