Article View: es.comp.os.linux.programacion
Article #12953Re: Detectar si hay un mouse serie conectado a un PC
From: Manuel López
Date: Thu, 03 May 2001 12:19
Date: Thu, 03 May 2001 12:19
33 lines
1589 bytes
1589 bytes
Santiago Romero <sromero@servicom2000.com> escribi�: > necesito encontrar una manera de detectar (en C, perl, > bash o lo que sea) si hay un mouse serie conectado al ttyS0. statserial(1) * No hay nada pinchado: # statserial -x /dev/ttyS0 4006 * Pincho un mouse: # statserial -x /dev/ttyS0 4106 * Pincho un m�dem: # statserial -x /dev/ttyS0 4006 * Enciendo el m�dem ;-) # statserial -x /dev/ttyS0 4126 * Modo bucle continuo # statserial /dev/ttyS0 Necesitar�s alg�n documento que indique el significado de las se�ales: RTS, CTS, DSR, etc. Vigila los permisos del dispositivo serie. -- Manuel L�pez Moreno PGP key ID: 0xC6C9455E Visita: Web de es.comp.os.linux.* <http://www.escomposlinux.org>
Technical Details
Message-ID:
<slrn9f2j6d.97.luname@delly.intra.luname.net>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!130.133.1.3!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!lunameReferences:
<7c3pc9.vd1.ln@127.0.0.1>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,3fd50c75d0339df5 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2001-05-03 05:35:37 PST Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!130.133.1.3!fu-berlin.de!newsfeed.bcn.ttd.net!news.bcn.ttd.net!luname From: luname@linuxfan.com (Manuel López) Newsgroups: es.comp.os.linux.programacion Subject: Re: Detectar si hay un mouse serie conectado a un PC Date: Thu, 3 May 2001 14:19:26 +0200 Organization: Telefonica Transmision de Datos Lines: 33 Message-ID: <slrn9f2j6d.97.luname@delly.intra.luname.net> References: <7c3pc9.vd1.ln@127.0.0.1> NNTP-Posting-Host: 213.98.164.60 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: slrn/0.9.7.0 (Linux)