Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"Well hello there Charlie Brown, you blockhead." -- Lucy Van Pelt


devel / comp.os.cpm / Re: Linux -> CP/M XMODEM transfer timeout

SubjectAuthor
* Linux -> CP/M XMODEM transfer timeoutPaolo Amoroso
`* Linux -> CP/M XMODEM transfer timeoutBill Shen
 +* Linux -> CP/M XMODEM transfer timeoutPaolo Amoroso
 |`- Linux -> CP/M XMODEM transfer timeoutBill Shen
 +- Linux -> CP/M XMODEM transfer timeoutDavid Schultz
 `* Linux -> CP/M XMODEM transfer timeoutPaolo Amoroso
  `* Linux -> CP/M XMODEM transfer timeoutDavid Albert
   +- Linux -> CP/M XMODEM transfer timeoutPaolo Amoroso
   +- Linux -> CP/M XMODEM transfer timeoutDavid Schultz
   +- Linux -> CP/M XMODEM transfer timeoutRoger Hanscom
   `* Linux -> CP/M XMODEM transfer timeoutDavid Schultz
    `* Linux -> CP/M XMODEM transfer timeoutMark Ogden
     +- Linux -> CP/M XMODEM transfer timeoutMark Ogden
     `* Linux -> CP/M XMODEM transfer timeoutDavid Schultz
      +* Linux -> CP/M XMODEM transfer timeoutUdo Munk
      |`- Linux -> CP/M XMODEM transfer timeoutDavid Schultz
      `* Linux -> CP/M XMODEM transfer timeoutfridtjof.ma...@gmail.com
       `* Linux -> CP/M XMODEM transfer timeoutDavid Schultz
        +* Linux -> CP/M XMODEM transfer timeoutUdo Munk
        |`* Linux -> CP/M XMODEM transfer timeoutUdo Munk
        | `* Linux -> CP/M XMODEM transfer timeoutBill Gunshannon
        |  `* Linux -> CP/M XMODEM transfer timeoutUdo Munk
        |   `* Linux -> CP/M XMODEM transfer timeoutUdo Munk
        |    +* Linux -> CP/M XMODEM transfer timeoutPaolo Amoroso
        |    |`* Linux -> CP/M XMODEM transfer timeoutUdo Munk
        |    | `- Linux -> CP/M XMODEM transfer timeoutRoger Hanscom
        |    `* Linux -> CP/M XMODEM transfer timeoutfridtjof.ma...@gmail.com
        |     +- Linux -> CP/M XMODEM transfer timeoutfridtjof.ma...@gmail.com
        |     `* Linux -> CP/M XMODEM transfer timeoutUdo Munk
        |      +- Linux -> CP/M XMODEM transfer timeoutfridtjof.ma...@gmail.com
        |      `* Linux -> CP/M XMODEM transfer timeoutDennis Boone
        |       +* Linux -> CP/M XMODEM transfer timeoutUdo Munk
        |       |`- Linux -> CP/M XMODEM transfer timeoutUdo Munk
        |       `* Linux -> CP/M XMODEM transfer timeoutBill Gunshannon
        |        `* Linux -> CP/M XMODEM transfer timeoutJack Strangio
        |         `- Linux -> CP/M XMODEM transfer timeoutJosef_Möllers
        `- Linux -> CP/M XMODEM transfer timeoutDennis Boone

Pages:12
Re: Linux -> CP/M XMODEM transfer timeout

<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4666&group=comp.os.cpm#4666

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:205:b0:343:282:3d0e with SMTP id b5-20020a05622a020500b0034302823d0emr35412144qtx.436.1662294973580;
Sun, 04 Sep 2022 05:36:13 -0700 (PDT)
X-Received: by 2002:a05:6870:4344:b0:10b:8499:395d with SMTP id
x4-20020a056870434400b0010b8499395dmr6285605oah.214.1662294973224; Sun, 04
Sep 2022 05:36:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 4 Sep 2022 05:36:12 -0700 (PDT)
In-Reply-To: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=93.148.128.70; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 93.148.128.70
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Sun, 04 Sep 2022 12:36:13 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2055
 by: Paolo Amoroso - Sun, 4 Sep 2022 12:36 UTC

I continued experimenting with the Z80-MBC2 and XMODEM.

In addition to Crostini Linux, recent versions of chromeOS support accessing USB serial devices also from Android apps[1], but file transfers freeze like on Linux with the only such terminal emulator that supports XMODEM. On chromeOS it's now possible to control serial USB devices also from web apps[2], but I haven't found any web terminal emulators with an XMODEM transfer feature.

Interestingly, the direct upload to the Z80-MBC2 of executable files in Intel HEX format does work, but requires tweaking the communication parameters[3].

[1] https://journal.paoloamoroso.com/controlling-the-z80-mbc2-from-android-on-chromeos
[2] https://journal.paoloamoroso.com/controlling-the-z80-mbc2-from-the-web
[3] https://journal.paoloamoroso.com/testing-hex-file-upload-to-the-z80-mbc2

Re: Linux -> CP/M XMODEM transfer timeout

<965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4669&group=comp.os.cpm#4669

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:6214:20a8:b0:477:1882:3e7 with SMTP id 8-20020a05621420a800b00477188203e7mr43148848qvd.44.1662423913643;
Mon, 05 Sep 2022 17:25:13 -0700 (PDT)
X-Received: by 2002:a54:4519:0:b0:345:443d:5c3b with SMTP id
l25-20020a544519000000b00345443d5c3bmr8516991oil.197.1662423913431; Mon, 05
Sep 2022 17:25:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Mon, 5 Sep 2022 17:25:13 -0700 (PDT)
In-Reply-To: <14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:8c0:d80:2f30:6948:8a5b:8f17:f5cd;
posting-account=4LqnLwoAAABkEeOjPXhyBor34oPMgh8H
NNTP-Posting-Host: 2601:8c0:d80:2f30:6948:8a5b:8f17:f5cd
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com> <14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: coinstronics@gmail.com (Bill Shen)
Injection-Date: Tue, 06 Sep 2022 00:25:13 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1370
 by: Bill Shen - Tue, 6 Sep 2022 00:25 UTC

Hard to do xmodem file transfer at 115200 with 8MHz Z80 without hardware handshake. So do you have hardware handshake enabled?
Bill

Re: Linux -> CP/M XMODEM transfer timeout

<05df2c2c-f758-4885-9156-c39646a0de6cn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4670&group=comp.os.cpm#4670

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:54f:0:b0:6ba:5369:5c5a with SMTP id 76-20020a37054f000000b006ba53695c5amr34381586qkf.253.1662449199783;
Tue, 06 Sep 2022 00:26:39 -0700 (PDT)
X-Received: by 2002:aca:100e:0:b0:345:2337:d5b9 with SMTP id
14-20020aca100e000000b003452337d5b9mr9100534oiq.213.1662449199543; Tue, 06
Sep 2022 00:26:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 6 Sep 2022 00:26:39 -0700 (PDT)
In-Reply-To: <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=93.148.128.70; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 93.148.128.70
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <05df2c2c-f758-4885-9156-c39646a0de6cn@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Tue, 06 Sep 2022 07:26:39 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1395
 by: Paolo Amoroso - Tue, 6 Sep 2022 07:26 UTC

Bill, the Z80-MBC2 developer recommends not enabling hardware handshake as the board presumably doesn't support it, but it's worth giving it a shot.

Re: Linux -> CP/M XMODEM transfer timeout

<8df30b1f-befe-48e4-8cf2-5fce2245fbfcn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4673&group=comp.os.cpm#4673

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:4007:b0:6be:91e8:c94e with SMTP id h7-20020a05620a400700b006be91e8c94emr1034517qko.375.1662512035840;
Tue, 06 Sep 2022 17:53:55 -0700 (PDT)
X-Received: by 2002:a05:6871:799:b0:11e:a2a3:dcae with SMTP id
o25-20020a056871079900b0011ea2a3dcaemr12632181oap.69.1662512035562; Tue, 06
Sep 2022 17:53:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 6 Sep 2022 17:53:55 -0700 (PDT)
In-Reply-To: <05df2c2c-f758-4885-9156-c39646a0de6cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:8c0:d80:2f30:61c7:7b11:db1:d718;
posting-account=4LqnLwoAAABkEeOjPXhyBor34oPMgh8H
NNTP-Posting-Host: 2601:8c0:d80:2f30:61c7:7b11:db1:d718
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<05df2c2c-f758-4885-9156-c39646a0de6cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8df30b1f-befe-48e4-8cf2-5fce2245fbfcn@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: coinstronics@gmail.com (Bill Shen)
Injection-Date: Wed, 07 Sep 2022 00:53:55 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1861
 by: Bill Shen - Wed, 7 Sep 2022 00:53 UTC

Bare minimal CP/M BIOS is needed to support XMODEM at 115200 without handshake with 8MHz Z80 so I was curious how Z80-MBC2 does it. According to this post in Hackaday, it is done with bigger receive buffer in Arduino MightyCore. So I don't think the problem is in CP/M XMODEM software, but in the ATMega serial emulation.
https://hackaday.io/project/159973-z80-mbc2-a-4-ics-homebrew-z80-computer/log/160375-new-ios-for-xmodem-support

Bill

Re: Linux -> CP/M XMODEM transfer timeout

<9pKcnYCmafrz4YX-nZ2dnZfqn_WdnZ2d@earthlink.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4674&group=comp.os.cpm#4674

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 07 Sep 2022 11:11:42 +0000
Date: Wed, 7 Sep 2022 06:11:42 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.2.1
From: david.schultz@earthlink.net (David Schultz)
Subject: Re: Linux -> CP/M XMODEM transfer timeout
Newsgroups: comp.os.cpm
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com>
<965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
Content-Language: en-US
In-Reply-To: <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <9pKcnYCmafrz4YX-nZ2dnZfqn_WdnZ2d@earthlink.com>
Lines: 28
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 108.194.109.167
X-Trace: sv3-qMMJHr9+9PlTUIxVlTG9l1B0YlesC4iEgp1kMv+SKXQdOMg+CaVr3ajlWKQuNaS4NmQdiOuAbfvpst8!fYYCmkg7VUZsmKIyGShU8Gk5Vi1YDbG+nQrG9NoIzplfORWP5o0lLzQqjI45+pLFOwXQDkWRb4No!foB1vw1I7zUBkLfn4gRgUB7WtapzUk78x20NFEDzk2I=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: David Schultz - Wed, 7 Sep 2022 11:11 UTC

On 9/5/22 7:25 PM, Bill Shen wrote:
> Hard to do xmodem file transfer at 115200 with 8MHz Z80 without hardware handshake. So do you have hardware handshake enabled?
> Bill

That board uses an ATMEGA part to do a lot of things including emulating
hardware devices like the serial port. It has a buffer for received data
and its size can be selected at compile time. I don't think it even
tries for flow control in its firmware.

It has been a while since this thread was active but as I recall the
buffer size for this particular version is large enough to hold an
XMODEM packet. The data, not any overhead like escaped characters. (128
bytes) Assuming it can dribble out data to the Z80 (over a parallel
interface) while receiving it, that shouldn't be a problem.

If it can manage that, there should be no more data arriving until the
receiver sends an ACK.

But there is that little detail of using a single serial link for both
control and data.

--
http://davesrocketworks.com
David Schultz

Re: Linux -> CP/M XMODEM transfer timeout

<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4676&group=comp.os.cpm#4676

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:1a0e:b0:6bc:3aa1:90a6 with SMTP id bk14-20020a05620a1a0e00b006bc3aa190a6mr16300723qkb.756.1662902318628;
Sun, 11 Sep 2022 06:18:38 -0700 (PDT)
X-Received: by 2002:a05:6808:11d0:b0:347:ca40:66ec with SMTP id
p16-20020a05680811d000b00347ca4066ecmr7020446oiv.214.1662902318308; Sun, 11
Sep 2022 06:18:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sun, 11 Sep 2022 06:18:37 -0700 (PDT)
In-Reply-To: <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=93.148.128.70; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 93.148.128.70
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Sun, 11 Sep 2022 13:18:38 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1777
 by: Paolo Amoroso - Sun, 11 Sep 2022 13:18 UTC

On Tuesday, September 6, 2022 at 2:25:14 AM UTC+2, Bill Shen wrote:
> Hard to do xmodem file transfer at 115200 with 8MHz Z80 without hardware handshake. So do you have hardware handshake enabled?

Enabling hardware handshake hangs the terminal session and software handshake changes nothing in XMODEM transfers. The Z80-MBC2 developer recommends no handshake because, as he notes, the board's Arduino-derived chipset doesn't support hardware flow control.

Re: Linux -> CP/M XMODEM transfer timeout

<311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4934&group=comp.os.cpm#4934

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:890:b0:6fe:ab3e:3d09 with SMTP id b16-20020a05620a089000b006feab3e3d09mr2678145qka.111.1673672588324;
Fri, 13 Jan 2023 21:03:08 -0800 (PST)
X-Received: by 2002:a05:6830:3704:b0:66c:5685:5415 with SMTP id
bl4-20020a056830370400b0066c56855415mr5784150otb.125.1673672588012; Fri, 13
Jan 2023 21:03:08 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 13 Jan 2023 21:03:07 -0800 (PST)
In-Reply-To: <5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.179.2.118; posting-account=wu3v8AoAAACQf8y9jIVkxrOeiOjgw_l_
NNTP-Posting-Host: 71.179.2.118
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: david@dalbert.net (David Albert)
Injection-Date: Sat, 14 Jan 2023 05:03:08 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2574
 by: David Albert - Sat, 14 Jan 2023 05:03 UTC

On Sunday, September 11, 2022 at 9:18:39 AM UTC-4, paolo....@gmail.com wrote:
> On Tuesday, September 6, 2022 at 2:25:14 AM UTC+2, Bill Shen wrote:
> > Hard to do xmodem file transfer at 115200 with 8MHz Z80 without hardware handshake. So do you have hardware handshake enabled?
> Enabling hardware handshake hangs the terminal session and software handshake changes nothing in XMODEM transfers. The Z80-MBC2 developer recommends no handshake because, as he notes, the board's Arduino-derived chipset doesn't support hardware flow control.

I'm having a similar problem on a different target. XModem/CRC works great from Windows using TeraTerm but fails immediately with sx on linux. An interesting thing that may point in the right direction is that at 9600bps, the transfer proceeds although very slowly due to a retry between each packet (Retry 0: NAK on sector)...however the file does transfer. As you note, minicom and most other linux serial comms programs just call sx to do the transfer. Unfortunately, it looks like sx (lrzsz) is broken for xmodem and has been for a very long time. Oddly there doesn't seem to be a replacement...it might be worth writing one.

Re: Linux -> CP/M XMODEM transfer timeout

<132ef4ed-57d7-4c2c-bd41-65ae456ea23bn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4935&group=comp.os.cpm#4935

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:1a88:b0:3ab:a89b:56b6 with SMTP id s8-20020a05622a1a8800b003aba89b56b6mr2337793qtc.213.1673684793501; Sat, 14 Jan 2023 00:26:33 -0800 (PST)
X-Received: by 2002:a05:6870:6b9a:b0:15e:9cf2:516c with SMTP id ms26-20020a0568706b9a00b0015e9cf2516cmr984778oab.158.1673684793160; Sat, 14 Jan 2023 00:26:33 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.14.MISMATCH!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sat, 14 Jan 2023 00:26:32 -0800 (PST)
In-Reply-To: <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2.35.2.41; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 2.35.2.41
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com> <14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com> <5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <132ef4ed-57d7-4c2c-bd41-65ae456ea23bn@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Sat, 14 Jan 2023 08:26:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 11
X-Received-Bytes: 2329
 by: Paolo Amoroso - Sat, 14 Jan 2023 08:26 UTC

On Saturday, January 14, 2023 at 6:03:09 AM UTC+1, David Albert wrote:
> I'm having a similar problem on a different target. XModem/CRC works great from Windows using TeraTerm but fails immediately with sx on linux. An interesting thing that may point in the right direction is that at 9600bps, the transfer proceeds although very slowly due to a retry between each packet (Retry 0: NAK on sector)...however the file does transfer. As you note, minicom and most other linux serial comms programs just call sx to do the transfer. Unfortunately, it looks like sx (lrzsz) is broken for xmodem and has been for a very long time. Oddly there doesn't seem to be a replacement....it might be worth writing one.

What device are you trying to transfer files to? A Z80-MBC2?

Re: Linux -> CP/M XMODEM transfer timeout

<7qScnfrDHpxAe1_-nZ2dnZfqnPednZ2d@earthlink.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4937&group=comp.os.cpm#4937

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 14 Jan 2023 17:31:09 +0000
Date: Sat, 14 Jan 2023 11:31:09 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.6.0
From: david.schultz@earthlink.net (David Schultz)
Subject: Re: Linux -> CP/M XMODEM transfer timeout
Newsgroups: comp.os.cpm
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com>
<965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com>
<311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
Content-Language: en-US
In-Reply-To: <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <7qScnfrDHpxAe1_-nZ2dnZfqnPednZ2d@earthlink.com>
Lines: 34
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 108.194.109.23
X-Trace: sv3-PyVOcJGTG7hFyd4S1LFb89VTmKFXeA7ikKaZEGEMITG/0W6mrI4zFhkwBQh4JdNQs2hNX/LADrjL48g!shmb7P9OmdYeqJl5yX3EFRIPXN5a9WlblWkZu9JluCoh9C1R2WXldhV/V36mYUTUCurcpsfuGC2W!+nlqMbCwCVOybmdLpSXrNJhVcT+cj4EBl/6UH2KrIw==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: David Schultz - Sat, 14 Jan 2023 17:31 UTC

On 1/13/23 11:03 PM, David Albert wrote:
> Unfortunately, it
> looks like sx (lrzsz) is broken for xmodem and has been for a very
> long time. Oddly there doesn't seem to be a replacement...it might
> be worth writing one.
>
From what I can see it hasn't been updated for a very long time yet
there is still a package for Fedora.

Before writing a replacement, it might be a better idea to figure out
what is wrong with the current version and fix it. I dug up something
resembling the Linux source (https://github.com/UweOhse/lrzsz).
Comparing that to an ancient version I found on my old CP/M-68K disks
shows a lot has remained the same:

#define VERSION "sz 1.22 01-01-87"
#define PUBDIR "/usr/spool/uucppublic"

/*% cc -O -K -i -DCRCTABLE -DREADCHECK sz.c -lx -o sz; size sz

* sz.c By Chuck Forsberg
*
* cc -O sz.c -o sz USG (SYS III/V) Unix
* cc -O -DSVR2 sz.c -o sz Sys V Release 2 with
non-blocking input
* Define to allow reverse channel
checking
* cc -O -DV7 sz.c -o sz Unix Version 7, 2.8 - 4.3 BSD
*

--
http://davesrocketworks.com
David Schultz

Re: Linux -> CP/M XMODEM transfer timeout

<c3cd4c61-d480-425f-a285-cd591f89c920n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4938&group=comp.os.cpm#4938

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:1013:b0:6fe:fb09:ec2e with SMTP id z19-20020a05620a101300b006fefb09ec2emr2578935qkj.214.1673722054537;
Sat, 14 Jan 2023 10:47:34 -0800 (PST)
X-Received: by 2002:a05:6830:3704:b0:66c:5685:5415 with SMTP id
bl4-20020a056830370400b0066c56855415mr5885020otb.125.1673722054141; Sat, 14
Jan 2023 10:47:34 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Sat, 14 Jan 2023 10:47:33 -0800 (PST)
In-Reply-To: <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:601:4180:21e2:bf85:63dc:bd7b:7733;
posting-account=IYDgigoAAAB4mts9mgmb0hp0ep-DoTY7
NNTP-Posting-Host: 2601:601:4180:21e2:bf85:63dc:bd7b:7733
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c3cd4c61-d480-425f-a285-cd591f89c920n@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: norwestrzh@gmail.com (Roger Hanscom)
Injection-Date: Sat, 14 Jan 2023 18:47:34 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2013
 by: Roger Hanscom - Sat, 14 Jan 2023 18:47 UTC

On Friday, January 13, 2023 at 9:03:09 PM UTC-8, David Albert wrote:
......<snip>.....
>> As you note, minicom and most other linux serial comms programs just call sx to do the transfer.
>> Unfortunately, it looks like sx (lrzsz) is broken for xmodem and has been for a very long time.
>> Oddly there doesn't seem to be a replacement...it might be worth writing one.

Hmmmm.... Interesting. I use the xmodem transfer protocol in minicom all the time, and it works very well.

I'm running (primarily) SuSE Linux, but also use Slackware. Never had any problems with it.

Roger

Re: Linux -> CP/M XMODEM transfer timeout

<9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4940&group=comp.os.cpm#4940

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 15 Jan 2023 15:39:28 +0000
Date: Sun, 15 Jan 2023 09:39:28 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.6.0
From: david.schultz@earthlink.net (David Schultz)
Subject: Re: Linux -> CP/M XMODEM transfer timeout
Newsgroups: comp.os.cpm
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com>
<965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com>
<311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
Content-Language: en-US
In-Reply-To: <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com>
Lines: 28
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 108.194.109.23
X-Trace: sv3-rK9eOrYcRTX9SIGHkRTt3O6+NPhlkq9yzZcymO4OraoAh8RDjSJqLbSg9DJORmq3LRWdqoaZvMljDZf!CMhggEFbgkGNmd2usvqCbKw82wGo/d+MgIUkthbmDL1Ducsc/lBNWlCeFUUrawSbARV6S6Ce/T94!lF/cdhY/4auSsuabefnQPJVBHXI2zqw/Ouy70mllGg==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: David Schultz - Sun, 15 Jan 2023 15:39 UTC

On 1/13/23 11:03 PM, David Albert wrote:
> I'm having a similar problem on a different target. XModem/CRC works great from Windows using TeraTerm but fails immediately with sx on linux. An interesting thing that may point in the right direction is that at 9600bps, the transfer proceeds although very slowly due to a retry between each packet (Retry 0: NAK on sector)
>
Reading that old lrzsz code is frustrating. I hate it when code is
poorly commented. Or almost not at all.

The XMODEM protocol mostly resides in the function wcputsec(). (Why that
name?) Dead simple and nothing that can go wrong. It sends data and
waits for an ACK.

But it was written when serial ports were serial ports. So makes some
assumptions. One of which is that the target is not echoing what it
receives. If a special character (ACK, NAK, CAN, etc.) appears in the
data, it will upset things. This is where TeraTerm could differ. But
given all the buffering that goes on (kernel, USB to serial, etc.) I can
think of no easy way to compensate for a target that echoes everything
it receives.

A CP/M target can be a problem if the data passes through the BDOS
console I/O routines.

The precise reason why the target sent a NAK would be helpful. Timeout?
bad checksum/CRC?

--
http://davesrocketworks.com
David Schultz

Re: Linux -> CP/M XMODEM transfer timeout

<5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4941&group=comp.os.cpm#4941

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:428a:b0:3b6:326f:b696 with SMTP id cr10-20020a05622a428a00b003b6326fb696mr74413qtb.35.1673955864716;
Tue, 17 Jan 2023 03:44:24 -0800 (PST)
X-Received: by 2002:aca:2318:0:b0:363:10b0:e5f5 with SMTP id
e24-20020aca2318000000b0036310b0e5f5mr117406oie.141.1673955863979; Tue, 17
Jan 2023 03:44:23 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 17 Jan 2023 03:44:23 -0800 (PST)
In-Reply-To: <9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c4:83:c101:8968:cbb3:3c1c:19b2;
posting-account=7LAplAoAAAByKIXUc8acNTC_dUp06kdO
NNTP-Posting-Host: 2a00:23c4:83:c101:8968:cbb3:3c1c:19b2
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
<9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: ogdenpm@gmail.com (Mark Ogden)
Injection-Date: Tue, 17 Jan 2023 11:44:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3196
 by: Mark Ogden - Tue, 17 Jan 2023 11:44 UTC

On Sunday, 15 January 2023 at 15:39:33 UTC, David Schultz wrote:
> On 1/13/23 11:03 PM, David Albert wrote:
> > I'm having a similar problem on a different target. XModem/CRC works great from Windows using TeraTerm but fails immediately with sx on linux. An interesting thing that may point in the right direction is that at 9600bps, the transfer proceeds although very slowly due to a retry between each packet (Retry 0: NAK on sector)
> >
> Reading that old lrzsz code is frustrating. I hate it when code is
> poorly commented. Or almost not at all.
>
> The XMODEM protocol mostly resides in the function wcputsec(). (Why that
> name?) Dead simple and nothing that can go wrong. It sends data and
> waits for an ACK.
>
> But it was written when serial ports were serial ports. So makes some
> assumptions. One of which is that the target is not echoing what it
> receives. If a special character (ACK, NAK, CAN, etc.) appears in the
> data, it will upset things. This is where TeraTerm could differ. But
> given all the buffering that goes on (kernel, USB to serial, etc.) I can
> think of no easy way to compensate for a target that echoes everything
> it receives.
>
> A CP/M target can be a problem if the data passes through the BDOS
> console I/O routines.
>
> The precise reason why the target sent a NAK would be helpful. Timeout?
> bad checksum/CRC?
> --
> http://davesrocketworks.com
> David Schultz
David
Have you tried the python implementation of XMODEM rather than lrzsz?
https://pypi.org/project/xmodem/ has links to the documentation and download files.
Mark Ogden

Re: Linux -> CP/M XMODEM transfer timeout

<cd17cf65-f165-4efc-8bf9-b0bf950e20e3n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4942&group=comp.os.cpm#4942

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:2281:b0:3b6:326f:fe37 with SMTP id ay1-20020a05622a228100b003b6326ffe37mr95332qtb.57.1673957229994;
Tue, 17 Jan 2023 04:07:09 -0800 (PST)
X-Received: by 2002:a05:6870:5d97:b0:14c:8b07:313d with SMTP id
fu23-20020a0568705d9700b0014c8b07313dmr271705oab.139.1673957229477; Tue, 17
Jan 2023 04:07:09 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 17 Jan 2023 04:07:09 -0800 (PST)
In-Reply-To: <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c4:83:c101:8968:cbb3:3c1c:19b2;
posting-account=7LAplAoAAAByKIXUc8acNTC_dUp06kdO
NNTP-Posting-Host: 2a00:23c4:83:c101:8968:cbb3:3c1c:19b2
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
<9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com> <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cd17cf65-f165-4efc-8bf9-b0bf950e20e3n@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: ogdenpm@gmail.com (Mark Ogden)
Injection-Date: Tue, 17 Jan 2023 12:07:09 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Mark Ogden - Tue, 17 Jan 2023 12:07 UTC

On Tuesday, 17 January 2023 at 11:44:25 UTC, Mark Ogden wrote:
> On Sunday, 15 January 2023 at 15:39:33 UTC, David Schultz wrote:
> > On 1/13/23 11:03 PM, David Albert wrote:
> > > I'm having a similar problem on a different target. XModem/CRC works great from Windows using TeraTerm but fails immediately with sx on linux. An interesting thing that may point in the right direction is that at 9600bps, the transfer proceeds although very slowly due to a retry between each packet (Retry 0: NAK on sector)
> > >
> > Reading that old lrzsz code is frustrating. I hate it when code is
> > poorly commented. Or almost not at all.
> >
> > The XMODEM protocol mostly resides in the function wcputsec(). (Why that
> > name?) Dead simple and nothing that can go wrong. It sends data and
> > waits for an ACK.
> >
> > But it was written when serial ports were serial ports. So makes some
> > assumptions. One of which is that the target is not echoing what it
> > receives. If a special character (ACK, NAK, CAN, etc.) appears in the
> > data, it will upset things. This is where TeraTerm could differ. But
> > given all the buffering that goes on (kernel, USB to serial, etc.) I can
> > think of no easy way to compensate for a target that echoes everything
> > it receives.
> >
> > A CP/M target can be a problem if the data passes through the BDOS
> > console I/O routines.
> >
> > The precise reason why the target sent a NAK would be helpful. Timeout?
> > bad checksum/CRC?
> > --
> > http://davesrocketworks.com
> > David Schultz
> David
> Have you tried the python implementation of XMODEM rather than lrzsz?
> https://pypi.org/project/xmodem/ has links to the documentation and download files.
> Mark Ogden
David
There is also the newer rzsz at https://github.com/coderfordev/rzsz
Mark

Re: Linux -> CP/M XMODEM transfer timeout

<wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4943&group=comp.os.cpm#4943

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.99.23.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 17 Jan 2023 18:16:41 +0000
Date: Tue, 17 Jan 2023 12:16:41 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0
From: david.schultz@earthlink.net (David Schultz)
Subject: Re: Linux -> CP/M XMODEM transfer timeout
Newsgroups: comp.os.cpm
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com> <14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com> <5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com> <9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com> <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
Content-Language: en-US
In-Reply-To: <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com>
Lines: 44
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 108.194.108.109
X-Trace: sv3-mKAJFQUKrd8PGWT78IWShN40tRGSAr/PMtHrz7gxoIczZmb4HjejlEn+HftnVtUlG2oAhQb1kzzmW2b!2rFQHcRPbEru+8/Na+JyoVpfYvJXad2FmC9zSYamBIoRfSZwK2sJyBGde3LVcxcr12zeMBBkLcOZ!Wm4r8xViPKkuhfQADP4u7M1EQk4+6LMq2itZiimHBFs=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 3550
 by: David Schultz - Tue, 17 Jan 2023 18:16 UTC

On 1/17/23 5:44 AM, Mark Ogden wrote:

> David
> Have you tried the python implementation of XMODEM rather than lrzsz?
> https://pypi.org/project/xmodem/ has links to the documentation and download files.
> Mark Ogden

Actually, I haven't used XMODEM in a very long time.

I got to looking and I do see a problem with its use with minicom.

The way XMODEM worked is that you dialed into a BBS or some such, told
it to send you a file, and then started your XMODEM receive program.
That sent a NAK to tell the sender it was ready.

Using it with minicom to send a file to a SBC is a problem. You tell
minicom to start XMODEM, then it tells you to give the command to start
receiving. Except you can't since XMODEM is now using that serial link.

So you have to start the XMODEM receive program before telling minicom
to start sending. This is a problem. (Of course with a short hardwired
connection like this, XMODEM isn't needed at all.)

The receive program sends a NAK to tell the sending program it is ready.
But since lrzsz hasn't started yet, nothing is listening. After a
timeout the receive program sends another NAK.

So when sz starts, more than one NAK can be buffered up waiting for it.
It consumes the first and sends the first packet. It then looks for an
ACK but finds one of those leftover NAKs.

I think that you could make lsz a little more tolerant of this. When it
reads data it uses a read() call and buffers extra characters. The code
includes a function to purge that buffer but it is never called. Adding
a call to readline_purge() at an appropriate point (after getting that
initial NAK would be good) would dump that extra data.

Calling it just before starting to send each packet might be excessive.
But there shouldn't be anything to purge.

--
http://davesrocketworks.com
David Schultz

Re: Linux -> CP/M XMODEM transfer timeout

<3fbb146e-9409-4bb3-a812-de87655eed1an@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4944&group=comp.os.cpm#4944

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ac8:13c3:0:b0:3b6:32ea:ad6 with SMTP id i3-20020ac813c3000000b003b632ea0ad6mr154464qtj.375.1673984168893;
Tue, 17 Jan 2023 11:36:08 -0800 (PST)
X-Received: by 2002:a05:6870:7f0a:b0:15f:6de0:b61 with SMTP id
xa10-20020a0568707f0a00b0015f6de00b61mr123966oab.36.1673984168516; Tue, 17
Jan 2023 11:36:08 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 17 Jan 2023 11:36:08 -0800 (PST)
In-Reply-To: <wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com>
Injection-Info: google-groups.googlegroups.com; posting-host=87.122.14.37; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 87.122.14.37
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
<9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com> <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
<wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3fbb146e-9409-4bb3-a812-de87655eed1an@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: udo.munk@freenet.de (Udo Munk)
Injection-Date: Tue, 17 Jan 2023 19:36:08 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Udo Munk - Tue, 17 Jan 2023 19:36 UTC

I used minicom/lrzsz a lot with the z80pack machines. The virtual SIO's won't overrun like a real one
and buffers all and everything, but I have not seen this problem.

Re: Linux -> CP/M XMODEM transfer timeout

<d0e527e5-db8a-4452-8337-dea99f663cb3n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4945&group=comp.os.cpm#4945

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ae9:e607:0:b0:706:1b9c:854c with SMTP id z7-20020ae9e607000000b007061b9c854cmr218021qkf.55.1673986069386;
Tue, 17 Jan 2023 12:07:49 -0800 (PST)
X-Received: by 2002:a05:6808:2342:b0:364:7e4f:5f9e with SMTP id
ef2-20020a056808234200b003647e4f5f9emr297516oib.125.1673986068754; Tue, 17
Jan 2023 12:07:48 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 17 Jan 2023 12:07:48 -0800 (PST)
In-Reply-To: <wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:f2c0:9364:3f00:772b:8102:31ad:7eb3;
posting-account=KOfC_woAAAC0YBGf-3r2aV5g2Aifd9jO
NNTP-Posting-Host: 2607:f2c0:9364:3f00:772b:8102:31ad:7eb3
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
<9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com> <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
<wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d0e527e5-db8a-4452-8337-dea99f663cb3n@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: fridtjof.martin.weigel@gmail.com (fridtjof.ma...@gmail.com)
Injection-Date: Tue, 17 Jan 2023 20:07:49 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3922
 by: fridtjof.ma...@gmail - Tue, 17 Jan 2023 20:07 UTC

On Tuesday, January 17, 2023 at 1:16:47 PM UTC-5, David Schultz wrote:
> On 1/17/23 5:44 AM, Mark Ogden wrote:
>
> > David
> > Have you tried the python implementation of XMODEM rather than lrzsz?
> > https://pypi.org/project/xmodem/ has links to the documentation and download files.
> > Mark Ogden
> Actually, I haven't used XMODEM in a very long time.
>
> I got to looking and I do see a problem with its use with minicom.
>
> The way XMODEM worked is that you dialed into a BBS or some such, told
> it to send you a file, and then started your XMODEM receive program.
> That sent a NAK to tell the sender it was ready.
>
> Using it with minicom to send a file to a SBC is a problem. You tell
> minicom to start XMODEM, then it tells you to give the command to start
> receiving. Except you can't since XMODEM is now using that serial link.
>
> So you have to start the XMODEM receive program before telling minicom
> to start sending. This is a problem. (Of course with a short hardwired
> connection like this, XMODEM isn't needed at all.)
>
> The receive program sends a NAK to tell the sending program it is ready.
> But since lrzsz hasn't started yet, nothing is listening. After a
> timeout the receive program sends another NAK.
>
> So when sz starts, more than one NAK can be buffered up waiting for it.
> It consumes the first and sends the first packet. It then looks for an
> ACK but finds one of those leftover NAKs.
>
> I think that you could make lsz a little more tolerant of this. When it
> reads data it uses a read() call and buffers extra characters. The code
> includes a function to purge that buffer but it is never called. Adding
> a call to readline_purge() at an appropriate point (after getting that
> initial NAK would be good) would dump that extra data.
>
> Calling it just before starting to send each packet might be excessive.
> But there shouldn't be anything to purge.
> --
> http://davesrocketworks.com
> David Schultz

Um... lrz.c line 762 and 645... should not be a problem. Call is to purgeline()
which first does readline_purge() and then actually purges... via ioctl() or lseek()

so, I think, good to go. Never been a problem for me, anyway -- I do not think there is
bug in THOSE particular hills.

Re: Linux -> CP/M XMODEM transfer timeout

<Bp-cnXom3_3vvFr-nZ2dnZfqnPadnZ2d@earthlink.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4946&group=comp.os.cpm#4946

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 17 Jan 2023 22:30:10 +0000
Date: Tue, 17 Jan 2023 16:30:10 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0
From: david.schultz@earthlink.net (David Schultz)
Subject: Re: Linux -> CP/M XMODEM transfer timeout
Newsgroups: comp.os.cpm
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com> <14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com> <5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com> <9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com> <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com> <wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com> <3fbb146e-9409-4bb3-a812-de87655eed1an@googlegroups.com>
Content-Language: en-US
In-Reply-To: <3fbb146e-9409-4bb3-a812-de87655eed1an@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <Bp-cnXom3_3vvFr-nZ2dnZfqnPadnZ2d@earthlink.com>
Lines: 25
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 108.194.108.109
X-Trace: sv3-vGrpQvsKAFiDYGUg4Zt0Y6wv9XEByxXKNCgdDBz0zit3h199LKVPbtMrQm0AqDKVCiKcMC5cX/GlfWH!uq0QrgYZHaIOCGS6/3NaeuiZX1lVKXAwtTCw0ycJref4EhKPHH4VM6t0ehynuKJzBIg772rte3WQ!F1ymdLdvdIBFl4VIryXGAlqvPgGL0AGF592sNa9TMxA=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 2815
 by: David Schultz - Tue, 17 Jan 2023 22:30 UTC

On 1/17/23 1:36 PM, Udo Munk wrote:
> I used minicom/lrzsz a lot with the z80pack machines. The virtual SIO's won't overrun like a real one
> and buffers all and everything, but I have not seen this problem.

The virtual SIO isn't the problem.

You start up the XMODEM receive program on the target and it sends a
NAK. But you haven't started the send side yet so the character doesn't
make it to lsz. Most likely minicom sees it and it vanishes.

Minicom eventually (the menu system is a bit clunky) starts up lsz which
looks for a NAK. Depending on how long of a delay there was between
starting the receiver, its timeout behaviour, and buffering of the
serial input on the Linux side, there could be more than one NAK sitting
in the queue. Is minicom looking at the serial port while you are in the
menu system trying to start lsz? Doubtful.

Of course if you take too long starting up lsz the receive program will
reach its retry limit and give up.

--
http://davesrocketworks.com
David Schultz

Re: Linux -> CP/M XMODEM transfer timeout

<Bp-cnXUm3_2Wv1r-nZ2dnZfqnPYAAAAA@earthlink.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4947&group=comp.os.cpm#4947

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 17 Jan 2023 22:32:43 +0000
Date: Tue, 17 Jan 2023 16:32:43 -0600
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0
From: david.schultz@earthlink.net (David Schultz)
Subject: Re: Linux -> CP/M XMODEM transfer timeout
Newsgroups: comp.os.cpm
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com> <14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com> <5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com> <9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com> <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com> <wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com> <d0e527e5-db8a-4452-8337-dea99f663cb3n@googlegroups.com>
Content-Language: en-US
In-Reply-To: <d0e527e5-db8a-4452-8337-dea99f663cb3n@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <Bp-cnXUm3_2Wv1r-nZ2dnZfqnPYAAAAA@earthlink.com>
Lines: 22
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 108.194.108.109
X-Trace: sv3-G17p/JxXKXMqtsiYtufxkQg5fF4H35+Nh1nn9KLVteemnoXP+1UoWFvjpCbnPXI5fbVop5JhXbA5pvs!FycDUGaq4Cyb6Fkqwc0MZolF8m0HSu5zwiAYk9jwf1ygllnI3iWgMqwfGNfobb5jDOnd1SvbSeAJ!BTxrxd4ormUatJ+D0Xu5QMv6AY2kot5ryPIgSCyD6wc=
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 2486
 by: David Schultz - Tue, 17 Jan 2023 22:32 UTC

On 1/17/23 2:07 PM, fridtjof.ma...@gmail.com wrote:

> Um... lrz.c line 762 and 645... should not be a problem. Call is to purgeline()
> which first does readline_purge() and then actually purges... via ioctl() or lseek()
>
Which effects lsz.c not at all.

There are calls to purgeline() in lsz.c but as near as I can tell, only
in code active for ZMODEM.

> so, I think, good to go. Never been a problem for me, anyway -- I do not think there is
> bug in THOSE particular hills.
>

It isn't a bug so much as it is using the tool in a way it wasn't
designed for. You are supposed to start the receiver after the sender is
running.

--
http://davesrocketworks.com
David Schultz

Re: Linux -> CP/M XMODEM transfer timeout

<2afd05b5-8db0-4877-9b1f-1767108ceecan@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4948&group=comp.os.cpm#4948

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:622a:4389:b0:3a5:46b0:ffec with SMTP id em9-20020a05622a438900b003a546b0ffecmr224109qtb.306.1673996327121;
Tue, 17 Jan 2023 14:58:47 -0800 (PST)
X-Received: by 2002:aca:5986:0:b0:367:75c:b5c5 with SMTP id
n128-20020aca5986000000b00367075cb5c5mr324092oib.26.1673996326643; Tue, 17
Jan 2023 14:58:46 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 17 Jan 2023 14:58:46 -0800 (PST)
In-Reply-To: <Bp-cnXUm3_2Wv1r-nZ2dnZfqnPYAAAAA@earthlink.com>
Injection-Info: google-groups.googlegroups.com; posting-host=87.122.14.37; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 87.122.14.37
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
<9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com> <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
<wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com> <d0e527e5-db8a-4452-8337-dea99f663cb3n@googlegroups.com>
<Bp-cnXUm3_2Wv1r-nZ2dnZfqnPYAAAAA@earthlink.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2afd05b5-8db0-4877-9b1f-1767108ceecan@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: udo.munk@freenet.de (Udo Munk)
Injection-Date: Tue, 17 Jan 2023 22:58:47 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2101
 by: Udo Munk - Tue, 17 Jan 2023 22:58 UTC

David Schultz schrieb am Dienstag, 17. Januar 2023 um 23:32:50 UTC+1:
> It isn't a bug so much as it is using the tool in a way it wasn't
> designed for. You are supposed to start the receiver after the sender is
> running.

There are lots of devices where one can update firmware using xmodem protocol.
These all have one in common, you connect with a terminal to the device and start
the receiver, and then on the PC you start the sender with the firmware file.
Always works.

Re: Linux -> CP/M XMODEM transfer timeout

<f8d21240-1608-4a63-b063-bf3c535547afn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4949&group=comp.os.cpm#4949

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:1278:b0:705:74fe:b39a with SMTP id b24-20020a05620a127800b0070574feb39amr222993qkl.616.1673996632415;
Tue, 17 Jan 2023 15:03:52 -0800 (PST)
X-Received: by 2002:a05:6870:fb91:b0:14c:793a:8ea8 with SMTP id
kv17-20020a056870fb9100b0014c793a8ea8mr438259oab.289.1673996632135; Tue, 17
Jan 2023 15:03:52 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 17 Jan 2023 15:03:51 -0800 (PST)
In-Reply-To: <2afd05b5-8db0-4877-9b1f-1767108ceecan@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=87.122.14.37; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 87.122.14.37
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
<9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com> <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
<wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com> <d0e527e5-db8a-4452-8337-dea99f663cb3n@googlegroups.com>
<Bp-cnXUm3_2Wv1r-nZ2dnZfqnPYAAAAA@earthlink.com> <2afd05b5-8db0-4877-9b1f-1767108ceecan@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f8d21240-1608-4a63-b063-bf3c535547afn@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: udo.munk@freenet.de (Udo Munk)
Injection-Date: Tue, 17 Jan 2023 23:03:52 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1818
 by: Udo Munk - Tue, 17 Jan 2023 23:03 UTC

Forgot, if you start the receiver from the terminal you will see the NAK the receiver sends,
so this one is eaten up by the terminal.

Re: Linux -> CP/M XMODEM transfer timeout

<k2oqppFab39U1@mid.individual.net>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4950&group=comp.os.cpm#4950

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: bill.gunshannon@gmail.com (Bill Gunshannon)
Newsgroups: comp.os.cpm
Subject: Re: Linux -> CP/M XMODEM transfer timeout
Date: Tue, 17 Jan 2023 18:54:33 -0500
Lines: 8
Message-ID: <k2oqppFab39U1@mid.individual.net>
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com>
<965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com>
<311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
<9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com>
<5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
<wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com>
<d0e527e5-db8a-4452-8337-dea99f663cb3n@googlegroups.com>
<Bp-cnXUm3_2Wv1r-nZ2dnZfqnPYAAAAA@earthlink.com>
<2afd05b5-8db0-4877-9b1f-1767108ceecan@googlegroups.com>
<f8d21240-1608-4a63-b063-bf3c535547afn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net EjddEl/k526r8TlFlhRXGw/91fe/eLGz8tULdbPPRuhc/l1lvO
Cancel-Lock: sha1:+qrrfZjpzjjPkkB8oOzlNJTCjSg=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.4.2
Content-Language: en-US
In-Reply-To: <f8d21240-1608-4a63-b063-bf3c535547afn@googlegroups.com>
 by: Bill Gunshannon - Tue, 17 Jan 2023 23:54 UTC

On 1/17/23 18:03, Udo Munk wrote:
> Forgot, if you start the receiver from the terminal you will see the NAK the receiver sends,
> so this one is eaten up by the terminal.

I stopped having an of these problems when Kermit showed up. :-)

bill

Re: Linux -> CP/M XMODEM transfer timeout

<t-WdnSjmb9Q93Vr-nZ2dnZfqnPqdnZ2d@giganews.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4951&group=comp.os.cpm#4951

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 18 Jan 2023 00:43:12 +0000
Sender: Dennis Boone <drb@yagi.h-net.org>
From: drb@ihatespam.msu.edu (Dennis Boone)
Subject: Re: Linux -> CP/M XMODEM transfer timeout
Newsgroups: comp.os.cpm
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com> <5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com> <9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com> <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com> <wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com> <d0e527e5-db8a-4452-8337-dea99f663cb3n@googlegroups.com> <Bp-cnXUm3_2Wv1r-nZ2dnZfqnPYAAAAA@earthlink.com>
User-Agent: tin/2.6.1-20211226 ("Convalmore") (FreeBSD/13.1-RELEASE-p2 (amd64))
Message-ID: <t-WdnSjmb9Q93Vr-nZ2dnZfqnPqdnZ2d@giganews.com>
Date: Wed, 18 Jan 2023 00:43:12 +0000
Lines: 13
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-GfTKkqhROA8dYzKy60WSlyoJCmp5mIJbvpH5wigylQp96CxwYsRuAi8gFLU2huIIr3eqgVCbkjUiaFZ!GmJ5/k7tgiq8O9RSdXa/PmJ2a3+lxDpoVBpImJn4/y8jyssjrVtYo4fjPea5EDzki7g81Ac=
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: Dennis Boone - Wed, 18 Jan 2023 00:43 UTC

> It isn't a bug so much as it is using the tool in a way it wasn't
> designed for. You are supposed to start the receiver after the sender is
> running.

You _can't_ start the receiver after starting the sender in an upload.

Seems like sx should flush the buffer either immediately at start, or
at least after receiving a NAK.

But it's still an open question whether this is the problem experience
when talking to a MyZ80, I believe.

De

Re: Linux -> CP/M XMODEM transfer timeout

<8c236d19-4ca4-4380-b55f-7fe1ad4daf3cn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4952&group=comp.os.cpm#4952

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:620a:2085:b0:706:7238:77f6 with SMTP id e5-20020a05620a208500b00706723877f6mr303120qka.691.1674022180550;
Tue, 17 Jan 2023 22:09:40 -0800 (PST)
X-Received: by 2002:a05:6808:606:b0:35a:6b40:cc44 with SMTP id
y6-20020a056808060600b0035a6b40cc44mr285810oih.158.1674022180149; Tue, 17 Jan
2023 22:09:40 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Tue, 17 Jan 2023 22:09:39 -0800 (PST)
In-Reply-To: <k2oqppFab39U1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=87.122.8.31; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 87.122.8.31
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
<9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com> <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
<wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com> <d0e527e5-db8a-4452-8337-dea99f663cb3n@googlegroups.com>
<Bp-cnXUm3_2Wv1r-nZ2dnZfqnPYAAAAA@earthlink.com> <2afd05b5-8db0-4877-9b1f-1767108ceecan@googlegroups.com>
<f8d21240-1608-4a63-b063-bf3c535547afn@googlegroups.com> <k2oqppFab39U1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8c236d19-4ca4-4380-b55f-7fe1ad4daf3cn@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: udo.munk@freenet.de (Udo Munk)
Injection-Date: Wed, 18 Jan 2023 06:09:40 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2128
 by: Udo Munk - Wed, 18 Jan 2023 06:09 UTC

Bill Gunshannon schrieb am Mittwoch, 18. Januar 2023 um 00:54:36 UTC+1:
> I stopped having an of these problems when Kermit showed up. :-)

It isn't really a problem, is normal that the terminal shows a bit garbage when you start
a xmodem transmission. Whatever, of course you can start the receiver first and then the
sender to get the transmission going, doesn't matter.

Re: Linux -> CP/M XMODEM transfer timeout

<037cf812-e785-41e5-8767-ce82fdc5003en@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4953&group=comp.os.cpm#4953

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ac8:518d:0:b0:3ae:9342:e23 with SMTP id c13-20020ac8518d000000b003ae93420e23mr257677qtn.146.1674046102607;
Wed, 18 Jan 2023 04:48:22 -0800 (PST)
X-Received: by 2002:a05:6870:fc83:b0:144:78f:4664 with SMTP id
ly3-20020a056870fc8300b00144078f4664mr669783oab.69.1674046102367; Wed, 18 Jan
2023 04:48:22 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Wed, 18 Jan 2023 04:48:22 -0800 (PST)
In-Reply-To: <8c236d19-4ca4-4380-b55f-7fe1ad4daf3cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=87.122.9.27; posting-account=RHtB3AoAAABZlu_FJY7ySUmJrtfW41bO
NNTP-Posting-Host: 87.122.9.27
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
<9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com> <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
<wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com> <d0e527e5-db8a-4452-8337-dea99f663cb3n@googlegroups.com>
<Bp-cnXUm3_2Wv1r-nZ2dnZfqnPYAAAAA@earthlink.com> <2afd05b5-8db0-4877-9b1f-1767108ceecan@googlegroups.com>
<f8d21240-1608-4a63-b063-bf3c535547afn@googlegroups.com> <k2oqppFab39U1@mid.individual.net>
<8c236d19-4ca4-4380-b55f-7fe1ad4daf3cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <037cf812-e785-41e5-8767-ce82fdc5003en@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: udo.munk@freenet.de (Udo Munk)
Injection-Date: Wed, 18 Jan 2023 12:48:22 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2076
 by: Udo Munk - Wed, 18 Jan 2023 12:48 UTC

Had some time to try this stuff again, on CP/M I'm using Martin Eberhardt's xmodem.
You really have to start transceiver first with minicom/lrzsz, if you first start xmodem on
the CP/M side the transfer will not start and times out after a while.

Re: Linux -> CP/M XMODEM transfer timeout

<12dcfb90-9a2d-4fd2-bf35-359e3c1258f1n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4954&group=comp.os.cpm#4954

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:ac8:51c6:0:b0:3ab:6e87:db38 with SMTP id d6-20020ac851c6000000b003ab6e87db38mr310968qtn.415.1674046510493;
Wed, 18 Jan 2023 04:55:10 -0800 (PST)
X-Received: by 2002:aca:1213:0:b0:35a:eee1:6710 with SMTP id
19-20020aca1213000000b0035aeee16710mr370721ois.69.1674046510058; Wed, 18 Jan
2023 04:55:10 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Wed, 18 Jan 2023 04:55:09 -0800 (PST)
In-Reply-To: <037cf812-e785-41e5-8767-ce82fdc5003en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2.35.2.41; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 2.35.2.41
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<14087ee9-3b9a-4982-9b46-d1c098b5a98cn@googlegroups.com> <965eee28-d6fa-4c4c-aff8-7747744fa058n@googlegroups.com>
<5cd986c4-737b-4055-af37-c4cdacb8353cn@googlegroups.com> <311079dc-639e-448d-9736-d2a2b9175292n@googlegroups.com>
<9xWdnUJoGPKtg1n-nZ2dnZfqn_ednZ2d@earthlink.com> <5c0bdde0-080e-46c2-ad17-1fd464d99a8fn@googlegroups.com>
<wS6dnbqX3MuUe1v-nZ2dnZfqn_SdnZ2d@earthlink.com> <d0e527e5-db8a-4452-8337-dea99f663cb3n@googlegroups.com>
<Bp-cnXUm3_2Wv1r-nZ2dnZfqnPYAAAAA@earthlink.com> <2afd05b5-8db0-4877-9b1f-1767108ceecan@googlegroups.com>
<f8d21240-1608-4a63-b063-bf3c535547afn@googlegroups.com> <k2oqppFab39U1@mid.individual.net>
<8c236d19-4ca4-4380-b55f-7fe1ad4daf3cn@googlegroups.com> <037cf812-e785-41e5-8767-ce82fdc5003en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <12dcfb90-9a2d-4fd2-bf35-359e3c1258f1n@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Wed, 18 Jan 2023 12:55:10 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2323
 by: Paolo Amoroso - Wed, 18 Jan 2023 12:55 UTC

On Wednesday, January 18, 2023 at 1:48:23 PM UTC+1, Udo Munk wrote:
> Had some time to try this stuff again, on CP/M I'm using Martin Eberhardt's xmodem.
> You really have to start transceiver first with minicom/lrzsz, if you first start xmodem on
> the CP/M side the transfer will not start and times out after a while.

If you have to send a file from Minicom to CP/M, how do you start the transceiver first with Minicom/lrzsz?

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor