delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/12/09:55:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 12 May 2003 09:54:36 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: =?iso-8859-1?Q?=D8yvind_Harboe?= <oyvind DOT harboe AT zylin DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Sending files over the serial port
In-Reply-To: <000401c31878$432d24c0$73dea8c0@lair>
Message-ID: <Pine.GSO.4.44.0305120952430.393-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Mon, 12 May 2003, Øyvind Harboe wrote:

> I'm trying to send files over the serial port using xmodem, ymodem
> and zmodem.
>
> The idea was to use lsz from http://www.ohse.de/uwe/software/lrzsz.html
>
> - I'm having trouble configuring the serial port to e.g. 38400, 8
> bits, no parity, no handshake, 1 stop bit.
>
> I believe stty can be used to configure the serial port:
>
> $ stty -F com1 38400
> stty: com1: unable to perform all requested operations
>
>
> - For now I've set CYGWIN=reset_com, locking the serial configuration
> to 9600-8-n-1.
>
>
> However, when I try to run upload a file via zmodem, it appears as if
> the line below does not successfully redirect stdin/stdout to com1. The
> command returns immediately, as if reading from the serial port does
> not block.
>
>
> $ lsz --zmodem foobar.zip >com1 0<&1
> Retry 0: Timeout on pathname
>
> Transfer incomplete
>
>
>
> Any help would be greatly appreciated!
>
> Øyvind Harboe

Øyvind,

"com1" is a Windows name, and doesn't get affected by Cygwin's stty et al
(AFAIK).  Try using /dev/ttyS0 or even /dev/com1 instead.

Also, why such weird syntax, why not simply

$ lsz --zmodem foobar.zip </dev/com1

?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019