From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EB14B138247 for ; Sun, 12 Oct 2014 12:08:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1E16E0C94; Sun, 12 Oct 2014 12:08:06 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3CE0AE0B8D for ; Sun, 12 Oct 2014 12:08:05 +0000 (UTC) Received: from localhost ([84.133.156.164]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MD9J6-1XOxX53GTE-00GVyy for ; Sun, 12 Oct 2014 14:08:04 +0200 Date: Sun, 12 Oct 2014 14:08:02 +0200 From: meino.cramer@gmx.de To: Gentoo Subject: [gentoo-user] Writing to tty01 (serial port) in simple straight forward way...?!? Message-ID: <20141012120802.GA4800@solfire> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Linux) X-Provags-ID: V03:K0:QT9Q/xNHjSwhyVhBAgHIo7NoWHzhtJ1ckrDVsQZIRu3ocK+Btmx ZyXDBf2g9+Pb15ccszV5YUhF/NlVSN6BbGeU6K+1SqPpmvSmYWMhcvWuNzTcEM58twRB6we TULvDES3dHIW2p8F+tS8Z8Bj3BzG4rZZPS4HxDMW3ikmop3Yymnh5rjzMzEC0f0DA3BsEIu 5KuoRrMVrdY0/GDcOB2Uw== X-UI-Out-Filterresults: notjunk:1; X-Archives-Salt: a790cb27-3d09-483a-aec4-56b7d52a2d7b X-Archives-Hash: 8a76f1961fbfe62a68b6af96cd0fd913 Hi, I want to send commands to ttyO1 (serial port on an embedded system). The commands are one line each and terminated with CRL/LF (aka "DOS"). Since this will be done from a batch script, it should be possible via commandline tools and non-interactively. The serial port is already setup up the right way. I tried echo -n"blablabal\x0a\x0d" , which was accepted (no error) but does not acchieve anything. The command was cat'n'paste from the documentation of the manufacturer of the chip (a GPS receiver module). I tried different commands. All were directly send to /dev/null inside the chip it seems... Is there any other simple straight forward method of writing successfully to a serial port (only RX/TX are connected) without dealing with minicom or advanced serial port programming in C? Thank you very much in advance for any help! Best regards, mcc