🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #9970

Re: AYUDA CON PUERTOS POR FAVOR

#9970
From: Mario Teijeiro Otero (emeteo)
Date: Thu, 18 Apr 2002 12:33
31 lines
1999 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Cesar Garcia wrote:

> Hola, estoy haciendo unos programas en linux y solo me falta poder mandar
> comandos a un puerto vease /dev/ttyS0 para ejecutar comandos en un
> dispositivo enchufado a ese puerto.
> 
> El tema esta que no se como se mandan comandos directamente por puerto, si
> hay que configurarlo con 9600 8-N-1 o algo parecido. En guiendous, el
> dispositivo si funciona dandole simplemente un copy > puerto.
> 
> Alguien me puede ayudar... Estoy parado!!!
> 
> Gracias

Hay un serial programation howto o algo as�, busca en el insflug.
De todas formas con setserial puedes configurar el puerto, y luego con un 
cat fichero> /dev/ttyS0 deberia de funcionar, claro que as� no lo tienes 
full-duplex ;-)

Saludos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8vr0fMKsc+XeZcdwRAq+vAJ9cvMZbufSPuZudDU0oN+pyAXLcwQCfRa0y
Zx6q4UvtyOvrwRL5BEwNmao=
=aTv2
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <0fem9a.iag.ln@asimovi>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!89.red-80-59-254.pooles.rima-tde.NET!not-for-mail
References: <y7wv8.278$la.4559@news.ono.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,e2629de2d8a7ed56
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-04-18 05:58:38 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!89.red-80-59-254.pooles.rima-tde.NET!not-for-mail
From: "Mario Teijeiro Otero (emeteo)" <emeteo@escomposlinux.org>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: AYUDA CON PUERTOS POR FAVOR
Date: Thu, 18 Apr 2002 14:33:35 +0200
Lines: 31
Message-ID: <0fem9a.iag.ln@asimovi>
References: <y7wv8.278$la.4559@news.ono.com>
Reply-To: emeteo@escomposlinux.org
NNTP-Posting-Host: 89.red-80-59-254.pooles.rima-tde.net (80.59.254.89)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
X-Trace: fu-berlin.de 1019134717 4591391 80.59.254.89 (16 [119866])
X-Orig-Path: asimovi!nobody
User-Agent: KNode/0.7.1