Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

EARTH smog | bricks AIR -- mud -- FIRE soda water | tequila WATER


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

SubjectAuthor
* Linux -> CP/M XMODEM transfer timeoutDennis Boone
`* Linux -> CP/M XMODEM transfer timeoutPaolo Amoroso
 +* Linux -> CP/M XMODEM transfer timeoutRandy McLaughlin
 |`- Linux -> CP/M XMODEM transfer timeoutPaolo Amoroso
 `* Linux -> CP/M XMODEM transfer timeoutDennis Boone
  `* Linux -> CP/M XMODEM transfer timeoutPaolo Amoroso
   `* Linux -> CP/M XMODEM transfer timeoutDennis Boone
    `* Linux -> CP/M XMODEM transfer timeoutPaolo Amoroso
     `* Linux -> CP/M XMODEM transfer timeoutDennis Boone
      `* Linux -> CP/M XMODEM transfer timeoutPaolo Amoroso
       `* Linux -> CP/M XMODEM transfer timeoutPaolo Amoroso
        `* Linux -> CP/M XMODEM transfer timeoutDennis Boone
         `- Linux -> CP/M XMODEM transfer timeoutPaolo Amoroso

1
Re: Linux -> CP/M XMODEM transfer timeout

<tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 22 Jun 2022 09:17:31 -0500
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> <YfSdnVlbiZfOoi__nZ2dnUU7-bPNnZ2d@giganews.com> <67ffefb5-b6ca-499d-b1d0-0eb0c3121686n@googlegroups.com>
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (FreeBSD/13.0-RELEASE-p6 (amd64))
Message-ID: <tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com>
Date: Wed, 22 Jun 2022 09:17:31 -0500
Lines: 6
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-Gvv9p8OQgUIky/n0XC6eacGiPJLn4m2XYvW7tlAQyG3GC4onzRSsChwQq5t3C29k9kYH7SjaVx/AIuI!dp7v7rn1r1GQVKEBCJhD3blkEn/qdfpzjuVCIxoga+KWbg4Kqrbi+mV/zBmbSwIf2MjUjyI=
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
X-Original-Bytes: 1290
 by: Dennis Boone - Wed, 22 Jun 2022 14:17 UTC

> Dennis, I can no longer reproduce a successfull transfer, even for a
> file that worked earlier.

Is this file text or binary?

De

Re: Linux -> CP/M XMODEM transfer timeout

<a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:adf:d22b:0:b0:21b:90be:2dc8 with SMTP id k11-20020adfd22b000000b0021b90be2dc8mr3506648wrh.423.1655907736173;
Wed, 22 Jun 2022 07:22:16 -0700 (PDT)
X-Received: by 2002:aca:bb08:0:b0:32f:7242:90ac with SMTP id
l8-20020acabb08000000b0032f724290acmr19394345oif.205.1655907735530; Wed, 22
Jun 2022 07:22:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Wed, 22 Jun 2022 07:22:15 -0700 (PDT)
In-Reply-To: <tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com>
Injection-Info: google-groups.googlegroups.com; posting-host=93.144.133.72; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 93.144.133.72
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<YfSdnVlbiZfOoi__nZ2dnUU7-bPNnZ2d@giganews.com> <67ffefb5-b6ca-499d-b1d0-0eb0c3121686n@googlegroups.com>
<tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Wed, 22 Jun 2022 14:22:16 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Paolo Amoroso - Wed, 22 Jun 2022 14:22 UTC

On Wednesday, June 22, 2022 at 4:17:38 PM UTC+2, Dennis Boone wrote:
> > Dennis, I can no longer reproduce a successfull transfer, even for a
> > file that worked earlier.
> Is this file text or binary?

It's a 104 bytes text file, specifically an Intel HEX file.

Re: Linux -> CP/M XMODEM transfer timeout

<dcaf6664-c229-4ab5-a0a7-c9d20f6f5489n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:adf:f503:0:b0:21a:3d9c:b355 with SMTP id q3-20020adff503000000b0021a3d9cb355mr3569760wro.623.1655908636568;
Wed, 22 Jun 2022 07:37:16 -0700 (PDT)
X-Received: by 2002:a9d:6f88:0:b0:60c:8bff:3087 with SMTP id
h8-20020a9d6f88000000b0060c8bff3087mr1552624otq.123.1655908635696; Wed, 22
Jun 2022 07:37:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.88.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Wed, 22 Jun 2022 07:37:15 -0700 (PDT)
In-Reply-To: <a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=75.64.86.134; posting-account=PFWPPwoAAACyqfximQYdiAnvYtofle1M
NNTP-Posting-Host: 75.64.86.134
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<YfSdnVlbiZfOoi__nZ2dnUU7-bPNnZ2d@giganews.com> <67ffefb5-b6ca-499d-b1d0-0eb0c3121686n@googlegroups.com>
<tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com> <a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dcaf6664-c229-4ab5-a0a7-c9d20f6f5489n@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: randy482@hotmail.com (Randy McLaughlin)
Injection-Date: Wed, 22 Jun 2022 14:37:16 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Randy McLaughlin - Wed, 22 Jun 2022 14:37 UTC

On Wednesday, June 22, 2022 at 9:22:17 AM UTC-5, paolo....@gmail.com wrote:
> On Wednesday, June 22, 2022 at 4:17:38 PM UTC+2, Dennis Boone wrote:
> > > Dennis, I can no longer reproduce a successful transfer, even for a
> > > file that worked earlier.
> > Is this file text or binary?
> It's a 104 bytes text file, specifically an Intel HEX file.
When it's small text files being sent to CPM it is easiest to open ED with the desired file name then send the ascii file then save it in ED.

Randy

Re: Linux -> CP/M XMODEM transfer timeout

<6bc43aae-ccd1-488d-a106-a2f8af524735n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:600c:a4c:b0:39c:6517:1136 with SMTP id c12-20020a05600c0a4c00b0039c65171136mr4400336wmq.12.1655909448354;
Wed, 22 Jun 2022 07:50:48 -0700 (PDT)
X-Received: by 2002:a05:6808:f90:b0:32f:3f73:a951 with SMTP id
o16-20020a0568080f9000b0032f3f73a951mr2146761oiw.68.1655909447795; Wed, 22
Jun 2022 07:50:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Wed, 22 Jun 2022 07:50:47 -0700 (PDT)
In-Reply-To: <dcaf6664-c229-4ab5-a0a7-c9d20f6f5489n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=93.144.133.72; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 93.144.133.72
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<YfSdnVlbiZfOoi__nZ2dnUU7-bPNnZ2d@giganews.com> <67ffefb5-b6ca-499d-b1d0-0eb0c3121686n@googlegroups.com>
<tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com> <a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com>
<dcaf6664-c229-4ab5-a0a7-c9d20f6f5489n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6bc43aae-ccd1-488d-a106-a2f8af524735n@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Wed, 22 Jun 2022 14:50:48 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Paolo Amoroso - Wed, 22 Jun 2022 14:50 UTC

Thanks for the tip Randy. However, I'm seeking a solution that works with arbitrary size files.

Re: Linux -> CP/M XMODEM transfer timeout

<yMidnQXFrc-m9y7_nZ2dnUU7-b-dnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 22 Jun 2022 14:15:07 -0500
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> <YfSdnVlbiZfOoi__nZ2dnUU7-bPNnZ2d@giganews.com> <67ffefb5-b6ca-499d-b1d0-0eb0c3121686n@googlegroups.com> <tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com> <a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com>
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (FreeBSD/13.0-RELEASE-p6 (amd64))
Message-ID: <yMidnQXFrc-m9y7_nZ2dnUU7-b-dnZ2d@giganews.com>
Date: Wed, 22 Jun 2022 14:15:07 -0500
Lines: 10
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-zvX692ZeXOqmo3K9q6aBHD4A2fOHwBE8FtmQsXYaP4u88srlYCItegwetT/+WNPu3c7pfUcNMaxmZ/P!T9MWzhr8uC19TFkqb1gJtdTjZcNrhI9OJbni/B5uIZCgFybA1k3LCushlvMDX1awGclZFHs=
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
X-Original-Bytes: 1621
 by: Dennis Boone - Wed, 22 Jun 2022 19:15 UTC

> It's a 104 bytes text file, specifically an Intel HEX file.

If you add "-vv" to the sz command in minicom, do you get a log file
called /tmp/szlog (or maybe sxlog) after an attempted transfer?

You might also try calculating the checksum of the first block of the
file by hand to see what the checksum byte should be. Does it come out
to be 0x13?

De

Re: Linux -> CP/M XMODEM transfer timeout

<1a971f25-25ac-4fed-a27c-8ed00f681cabn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:600c:354f:b0:39c:78c8:a854 with SMTP id i15-20020a05600c354f00b0039c78c8a854mr62537wmq.121.1655928304421;
Wed, 22 Jun 2022 13:05:04 -0700 (PDT)
X-Received: by 2002:a05:6870:970e:b0:101:c67e:1b35 with SMTP id
n14-20020a056870970e00b00101c67e1b35mr47921oaq.139.1655928303738; Wed, 22 Jun
2022 13:05:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Wed, 22 Jun 2022 13:05:03 -0700 (PDT)
In-Reply-To: <yMidnQXFrc-m9y7_nZ2dnUU7-b-dnZ2d@giganews.com>
Injection-Info: google-groups.googlegroups.com; posting-host=93.144.133.72; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 93.144.133.72
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<YfSdnVlbiZfOoi__nZ2dnUU7-bPNnZ2d@giganews.com> <67ffefb5-b6ca-499d-b1d0-0eb0c3121686n@googlegroups.com>
<tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com> <a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com>
<yMidnQXFrc-m9y7_nZ2dnUU7-b-dnZ2d@giganews.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1a971f25-25ac-4fed-a27c-8ed00f681cabn@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Wed, 22 Jun 2022 20:05:04 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Paolo Amoroso - Wed, 22 Jun 2022 20:05 UTC

On Wednesday, June 22, 2022 at 9:15:14 PM UTC+2, Dennis Boone wrote:
> If you add "-vv" to the sz command in minicom, do you get a log file
> called /tmp/szlog (or maybe sxlog) after an attempted transfer?

Yes, Minicom creates the minicom.log file in the current directory. Here's the entry of a successful transfer of the 104 bytes file greet.hex:

20220617 21:33:24 sx -vv greet.hex
20220617 21:33:24 Sending greet.hex, 0 blocks: Give your local XMODEM receive command now.
20220617 21:33:29 Bytes Sent: 128 BPS:27

Here's instead the entry of a failed transfer:

20220619 19:55:19 sx -vv te.hex
20220619 19:55:19 Sending te.hex, 353 blocks: Give your local XMODEM receive command now.


> You might also try calculating the checksum of the first block of the
> file by hand to see what the checksum byte should be. Does it come out
> to be 0x13?

I'm not sure how to calculate the checksum. Is it one of the algorithms this CRC calculator provides? https://crccalc.com

Anyway, here's greet.hex in full, i.e. the successfully transferred 104 bytes file (by the way, it's an 8080 hello world demo in Intel HEX format):

:200100000E09110901CD0500C94772656574696E67732066726F6D205375697465383038CC
:02012000302489
:00000001FF

Re: Linux -> CP/M XMODEM transfer timeout

<u8ydnSnz4YtDWC7_nZ2dnUU7-dnNnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 22 Jun 2022 20:46:06 -0500
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> <YfSdnVlbiZfOoi__nZ2dnUU7-bPNnZ2d@giganews.com> <67ffefb5-b6ca-499d-b1d0-0eb0c3121686n@googlegroups.com> <tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com> <a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com> <yMidnQXFrc-m9y7_nZ2dnUU7-b-dnZ2d@giganews.com> <1a971f25-25ac-4fed-a27c-8ed00f681cabn@googlegroups.com>
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (FreeBSD/13.0-RELEASE-p6 (amd64))
Message-ID: <u8ydnSnz4YtDWC7_nZ2dnUU7-dnNnZ2d@giganews.com>
Date: Wed, 22 Jun 2022 20:46:06 -0500
Lines: 16
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-QIhjWL5YH6vVTA20EFx94eKl0MOOy3x+SHBZE58GDiJl/ZHj7YrQEl8a2b7+XXaGC2bfZFSkoVbyf/W!uL0aqJ3fkZnD8xexKJKqbT/tDmbdf8KkZXwhq819kLYu4A8U2kjrY9U5y7FonzYmFRhNnDY=
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
X-Original-Bytes: 1928
 by: Dennis Boone - Thu, 23 Jun 2022 01:46 UTC

I was hoping the log could be made to show actual serial port traffic.
Otherwise we're weighing stars through telescopes. Ah well.

> I'm not sure how to calculate the checksum. Is it one of the algorithms
> this CRC calculator provides? https://crccalc.com

I believe it's a simple sum modulo 256.

> Anyway, here's greet.hex in full, i.e. the successfully transferred 104
> bytes file (by the way, it's an 8080 hello world demo in Intel HEX
> format):

Any chance you're free to post the first couple hundred bytes worth
of the te file?

De

Re: Linux -> CP/M XMODEM transfer timeout

<6ed2cb51-9a88-4a99-887c-048b068881e2n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:adf:e286:0:b0:21b:a6b1:ac8b with SMTP id v6-20020adfe286000000b0021ba6b1ac8bmr2854127wri.72.1655971439162;
Thu, 23 Jun 2022 01:03:59 -0700 (PDT)
X-Received: by 2002:a05:6870:339a:b0:f2:d065:be1f with SMTP id
w26-20020a056870339a00b000f2d065be1fmr1607423oae.69.1655971438495; Thu, 23
Jun 2022 01:03:58 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!pasdenom.info!usenet-fr.net!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Thu, 23 Jun 2022 01:03:58 -0700 (PDT)
In-Reply-To: <u8ydnSnz4YtDWC7_nZ2dnUU7-dnNnZ2d@giganews.com>
Injection-Info: google-groups.googlegroups.com; posting-host=37.183.142.113; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 37.183.142.113
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<YfSdnVlbiZfOoi__nZ2dnUU7-bPNnZ2d@giganews.com> <67ffefb5-b6ca-499d-b1d0-0eb0c3121686n@googlegroups.com>
<tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com> <a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com>
<yMidnQXFrc-m9y7_nZ2dnUU7-b-dnZ2d@giganews.com> <1a971f25-25ac-4fed-a27c-8ed00f681cabn@googlegroups.com>
<u8ydnSnz4YtDWC7_nZ2dnUU7-dnNnZ2d@giganews.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6ed2cb51-9a88-4a99-887c-048b068881e2n@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Thu, 23 Jun 2022 08:03:59 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Paolo Amoroso - Thu, 23 Jun 2022 08:03 UTC

On Thursday, June 23, 2022 at 3:46:12 AM UTC+2, Dennis Boone wrote:
> I was hoping the log could be made to show actual serial port traffic.

Minicom runs sx -vv by default. I tried -vvvv but the only additional info it logs is pretty much only the file size.

> Any chance you're free to post the first couple hundred bytes worth
> of the te file?

te.hex is the HEX version of the te text editor by Miguel López. Here's the beginning of the file:

:200100002A06002E00F9110002B7ED522B22910111774BED538F01B7ED52232293013024DA
:200120000E09112B01CD0500C3000052756E74696D65204572726F72202D204E6F20737497
:2001400061636B24218100119501017F00EDB03A800006004F219501093600111702219402
:2001600001010100237EB72818FE2028F77D127C1312130C237EB72808FE2020F73600184D
:20018000E3211502C5E5CDDB36000000C300000000000000000000000000000000000000F9
:2001A00000000000000000000000000000000000000000000000000000000000000000003F
:2001C00000000000000000000000000000000000000000000000000000000000000000001F
:2001E0000000000000000000000000000000000000000000000000000000000000000000FF
:2002000000000000000000000000000000000000000000000049024902490249024902491E
:2002200002490249024902490249024902490249024902490249024902490249024902490E
:2002400002490249024902490200CD9C021803CDAD026E2600C9CD9C021803CDAD027E6F22
:20026000079F67C9CD9C021803CDAD027E23666FC9CD99021803CDAA02ED5B970273EBC963
:20028000CD99021803CDAA02ED5B9702732372EBC97D12137C12C90000229702D1E14E23EE
:2002A0004623E5D52104000939C9229702D1E106004E23E5D52104000939C97DB36F7CB250
:2002C00067C97DAB6F7CAA67C97DA36F7CA267C97CB5B2B36FC97CB5C87AB3C0C31604B7DC

Re: Linux -> CP/M XMODEM transfer timeout

<y82dnYg8Q9zCHCn_nZ2dnUU7-bnNnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 23 Jun 2022 10:06:07 -0500
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> <YfSdnVlbiZfOoi__nZ2dnUU7-bPNnZ2d@giganews.com> <67ffefb5-b6ca-499d-b1d0-0eb0c3121686n@googlegroups.com> <tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com> <a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com> <yMidnQXFrc-m9y7_nZ2dnUU7-b-dnZ2d@giganews.com> <1a971f25-25ac-4fed-a27c-8ed00f681cabn@googlegroups.com> <u8ydnSnz4YtDWC7_nZ2dnUU7-dnNnZ2d@giganews.com> <6ed2cb51-9a88-4a99-887c-048b068881e2n@googlegroups.com>
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (FreeBSD/13.0-RELEASE-p6 (amd64))
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <y82dnYg8Q9zCHCn_nZ2dnUU7-bnNnZ2d@giganews.com>
Date: Thu, 23 Jun 2022 10:06:07 -0500
Lines: 24
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-4OkkqF7AGVyv50jhPcBI6b+Ezg98ijlZdeJYRCZjcV5o0LzVS0o0I89QojSiwPjgoYlBVbKUlSoT4ec!a0xxlvB2X7si+zoecPWgLyIcYip7ajOA4ZejtShnXexSdGrMXFkr4Vm4QJVYslWJvMzhW5c=
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
X-Original-Bytes: 2671
 by: Dennis Boone - Thu, 23 Jun 2022 15:06 UTC

> Minicom runs sx -vv by default. I tried -vvvv but the only additional
> info it logs is pretty much only the file size.

If you're familiar with the strace tool, it might be useful for getting
a look at the serial port traffic without getting into more involved
hardware setups. The recipe looks like this:

strace -s9999 -o /tmp/minicom.strace -eread,write,ioctl minicom

Attempt a failing transfer, then exit minicom. Now you should have a
file /tmp/minicom.strace full of a list of all of the syscalls that
minicom made while it was running. The beginning of the file will have
a large amount of activity done by image run-up, but toward then end we
ought to be able to find read and write calls on the serial port, and
the -s9999 part should mean we get all of the data that it attempted to
send, or did actually receive.

> te.hex is the HEX version of the te text editor by Miguel López. Here's
> the beginning of the file:

I can't get a checksum of the presumed first packet of either of these
hex files to look like a problem, but perhaps I'm not doing it right.

De

Re: Linux -> CP/M XMODEM transfer timeout

<3ef9e4b0-77f9-4a15-a409-16bf4d89a257n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a5d:6d0c:0:b0:216:2433:5317 with SMTP id e12-20020a5d6d0c000000b0021624335317mr9500521wrq.263.1656009956862;
Thu, 23 Jun 2022 11:45:56 -0700 (PDT)
X-Received: by 2002:a4a:d252:0:b0:425:6239:4f7b with SMTP id
e18-20020a4ad252000000b0042562394f7bmr3973971oos.35.1656009956254; Thu, 23
Jun 2022 11:45:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.88.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Thu, 23 Jun 2022 11:45:56 -0700 (PDT)
In-Reply-To: <y82dnYg8Q9zCHCn_nZ2dnUU7-bnNnZ2d@giganews.com>
Injection-Info: google-groups.googlegroups.com; posting-host=37.183.142.113; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 37.183.142.113
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<YfSdnVlbiZfOoi__nZ2dnUU7-bPNnZ2d@giganews.com> <67ffefb5-b6ca-499d-b1d0-0eb0c3121686n@googlegroups.com>
<tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com> <a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com>
<yMidnQXFrc-m9y7_nZ2dnUU7-b-dnZ2d@giganews.com> <1a971f25-25ac-4fed-a27c-8ed00f681cabn@googlegroups.com>
<u8ydnSnz4YtDWC7_nZ2dnUU7-dnNnZ2d@giganews.com> <6ed2cb51-9a88-4a99-887c-048b068881e2n@googlegroups.com>
<y82dnYg8Q9zCHCn_nZ2dnUU7-bnNnZ2d@giganews.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3ef9e4b0-77f9-4a15-a409-16bf4d89a257n@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Thu, 23 Jun 2022 18:45:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Paolo Amoroso - Thu, 23 Jun 2022 18:45 UTC

On Thursday, June 23, 2022 at 5:06:14 PM UTC+2, Dennis Boone wrote:
> strace -s9999 -o /tmp/minicom.strace -eread,write,ioctl minicom

I run the following command, where I added the Minicon configuration file with the Z80-MBC2 connection settings:

strace -s9999 -o /tmp/minicom.strace -eread,write,ioctl minicom z80mbc2

Here's the relevant part of minicom.strace when attempting to transfger the file te.hex:

write(1, "\33[2;1H\33[0m\33(B \33[3;1H
\33[4;1HZ80-MBC2 CPMLDR BIOS - S180918 \33[5;1H
\33[6;1HCP/M V3.0 Loader \33[7;1HCopyright
(C) 1982, Digital Research \33[8;1H \3
3[9;1H BNKBIOS3 SPR F600 0600 \33[10;1H BNKBIOS3 SPR 5300 2D00
\33[11;1H RESBDOS3 SPR F000 0600 \33[12;1H BNKBDOS3 SPR 2500 2E00
\33[13;1H \33[14;1H 60K TPA
\33[15;1H \33[16;1HZ80-MBC2 1
28KB (Banked) CP/M V3.0 \33[17;1HZ80-MBC2 BIOS Modules: S200918, S210918-R170319, S220918-R180319, S290918, \
33[18;1H S170319 \33[19;1H
\33[20;1HA>b: \33[21;1HB>a:xmodem te.hex /r
\33[23;3H", 1726) = 1726
write(1, "\33[?12l\33[?25h", 12) = 12
write(1, "\rFile created \33[24;32H", 88) = 88
write(4, "20220623 20:18:32 sx -vv te.hex\n", 32) = 32
write(1, "\33[5;5H+----------------------------------------------------------------------+\33[6;5H|
|\33[7;5H| |\33[8;5H|
|\33[9;5H| |\33[10;5H|
|\33[11;5H| |\33[12;5H|
|\33[13;5H+----------------------------------------------------------------------+\33[6;6H\33[?12l\33[?25h", 724) = 724
write(1, "\33[5;22H[xmodem upload - Press CTRL-C to quit]\33[6;6H", 51) = 51
ioctl(3, TCFLSH, TCIOFLUSH) = 0
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 -opost isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 -opost isig -icanon -echo ...}) = 0
read(4, "Sending te.hex, 353 blocks: Give your local XMODEM receive command now.\r\n", 159) = 73
write(1, "Sending te.hex, 353 blocks: Give your local XMODEM receive command now\33[7;6H.\10\33[8;6H", 84) = 84
ioctl(3, TIOCMGET, [TIOCM_DTR|TIOCM_RTS]) = 0
write(5, "20220623 20:18:32 Sending te.hex, 353 blocks: Give your local XMODEM receive command now.\n", 90) = 90
read(4, "\rXmodem sectors/kbytes sent: 0/ 0k", 159) = 36
write(1, "Xmodem sectors/kbytes sent: 0/ 0k", 35) = 35
ioctl(3, TIOCMGET, [TIOCM_DTR|TIOCM_RTS]) = 0
read(4, "Retry 0: Timeout on sector ACK\n", 159) = 31
write(1, "Retry 0: Timeout on sector ACK\33[9;6H", 36) = 36
ioctl(3, TIOCMGET, [TIOCM_DTR|TIOCM_RTS]) = 0
read(4, "Retry 0: Timeout on sector ACK\n", 159) = 31
write(1, "Retry 0: Timeout on sector ACK\33[10;6H", 37) = 37
ioctl(3, TIOCMGET, [TIOCM_DTR|TIOCM_RTS]) = 0
read(4, 0x7ffdd0acb650, 159) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---
read(4, "", 159) = 0
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=946, si_uid=1000, si_status=SIGKILL, si_utime=0, si_stime=0} ---
ioctl(0, TCGETS, {B38400 -opost isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 -opost isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
write(5, " 944\n", 11) = 11
ioctl(3, TCFLSH, TCIOFLUSH) = 0
ioctl(3, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_START or TCSETS, {B115200 -opost -isig -icanon -echo ....}) = 0
ioctl(3, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, TIOCMGET, [TIOCM_DTR|TIOCM_RTS]) = 0
ioctl(3, TIOCMSET, [TIOCM_DTR|TIOCM_RTS]) = 0
ioctl(3, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_START or TCSETS, {B115200 -opost -isig -icanon -echo ....}) = 0
ioctl(3, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, TIOCGRS485, 0x7ffdd0acb480) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(3, TIOCMGET, [TIOCM_DTR|TIOCM_RTS]) = 0
write(1, "\33[?12l\33[?25h", 12) = 12
write(1, "\33[5;1H \33[6;1HCP/M V3.0 Loader \33[7;1HCopyright (C) 1982, Digital Research \33[8;1H \33[9;1H BNKBIOS3 SPR F600 0600 \33[10;1H BNKBIOS3 SPR 5300 2D00 \33[11;1H RESBDOS3 SPR F000 0600 \33[12;1H BNKBDOS3 SPR 2500 2E
00 \33[13;1H \33[24;32H", 750) = 750
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(3, TIOCMGET, [TIOCM_DTR|TIOCM_RTS]) = 0
ioctl(3, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, TIOCMGET, [TIOCM_DTR|TIOCM_RTS]) = 0
ioctl(3, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
read(0, "\31", 32) = 1
read(0, "x", 32) = 1
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, TCFLSH, TCIOFLUSH) = 0
write(1, "\33[8;30H\33[?25l+----------------------+\33[9;30H| Leave Minicom? |\33[10;30H| No |\33[11;30H+----------------------+\33[10;51H\33[?25l", 146) = 146
write(1, "\33[10;33H\33[0m\33(B\33[7m Yes ", 27) = 27
read(0, "\r", 32) = 1
write(1, "\33[?12l\33[?25h", 12) = 12
write(1, "\33[8;1H\33[0m\33(B \33[9;1H BNKBIOS3 SPR F600 0600 \33[10;1H BNKBIOS3 SPR 5300 2D00 \33[11;1H RESBDOS3 SPR F000 0600 \33[24;32H", 253) = 253
ioctl(3, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(3, SNDCTL_TMR_START or TCSETS, {B9600 opost isig icanon echo ...}) = 0
ioctl(3, TCGETS, {B9600 opost isig icanon echo ...}) = 0
ioctl(3, TIOCMSET, [TIOCM_DTR|TIOCM_RTS]) = 0
write(1, "\33[?12l\33[?25h", 12) = 12
write(1, "\33[?12l\33[?25h", 12) = 12
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(1, "\33[H\33[2J", 7) = 7
write(1, "\33[?12l\33[?25h", 12) = 12
write(1, "\33[?1l\33>\33[!p\33[?3;4l\33[4l\33>", 24) = 24
+++ exited with 0 +++


Click here to read the complete article
Re: Linux -> CP/M XMODEM transfer timeout

<29b3aadb-ba94-4ab9-b155-3f741d70cfe9n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:adf:d22b:0:b0:21b:90be:2dc8 with SMTP id k11-20020adfd22b000000b0021b90be2dc8mr9523745wrh.423.1656011209382;
Thu, 23 Jun 2022 12:06:49 -0700 (PDT)
X-Received: by 2002:a9d:37a2:0:b0:60e:30fa:41d6 with SMTP id
x31-20020a9d37a2000000b0060e30fa41d6mr4364479otb.26.1656011208676; Thu, 23
Jun 2022 12:06:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Thu, 23 Jun 2022 12:06:48 -0700 (PDT)
In-Reply-To: <3ef9e4b0-77f9-4a15-a409-16bf4d89a257n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=37.183.142.113; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 37.183.142.113
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<YfSdnVlbiZfOoi__nZ2dnUU7-bPNnZ2d@giganews.com> <67ffefb5-b6ca-499d-b1d0-0eb0c3121686n@googlegroups.com>
<tLKdnSdBYv7muS7_nZ2dnUU7-a2dnZ2d@giganews.com> <a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com>
<yMidnQXFrc-m9y7_nZ2dnUU7-b-dnZ2d@giganews.com> <1a971f25-25ac-4fed-a27c-8ed00f681cabn@googlegroups.com>
<u8ydnSnz4YtDWC7_nZ2dnUU7-dnNnZ2d@giganews.com> <6ed2cb51-9a88-4a99-887c-048b068881e2n@googlegroups.com>
<y82dnYg8Q9zCHCn_nZ2dnUU7-bnNnZ2d@giganews.com> <3ef9e4b0-77f9-4a15-a409-16bf4d89a257n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <29b3aadb-ba94-4ab9-b155-3f741d70cfe9n@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Thu, 23 Jun 2022 19:06:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Paolo Amoroso - Thu, 23 Jun 2022 19:06 UTC

On Thursday, June 23, 2022 at 8:45:58 PM UTC+2, Paolo Amoroso wrote:
> I run the following command, where I added the Minicon configuration file with the Z80-MBC2 connection settings:
>
> strace -s9999 -o /tmp/minicom.strace -eread,write,ioctl minicom z80mbc2

Actually, Minicom doesn't do the file transfer itself but runs the external program sx. So I changed Minicom's settings to execute the following command for sending files via XMODEM, omitting the -vv verbose option because it'd clutter the strace output and wouldn't be of much help anyway:

strace -s9999 -o /tmp/sx.strace -eread,write,ioctl sx

Here's the file sx.strace in full:

read(4, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@n\2\0\0\0\0\0@\0\0\0\0\0\0\0p\2\34\0\0\0\0\0\0\0\0\0@\08\0\f\0@\0A\0@\0\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0\240\2\0\0\0\0\0\0\240\2\0\0\0\0\0\0\10\0\0\0\0\0\0\0\3\0\0\0\4\0\0\0 ?\31\0\0\0\0\0 ?\31\0\0\0\0\0 ?\31\0\0\0\0\0\34\0\0\0\0\0\0\0\34\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0\1\0\0\0\4\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\200I\2\0\0\0\0\0\200I\2\0\0\0\0\0\0\20\0\0\0\0\0\0\1\0\0\0\5\0\0\0\0P\2\0\0\0\0\0\0P\2\0\0\0\0\0\0P\2\0\0\0\0\0\254\245\24\0\0\0\0\0\254\245\24\0\0\0\0\0\0\20\0\0\0\0\0\0\1\0\0\0\4\0\0\0\0\0\27\0\0\0\0\0\0\0\27\0\0\0\0\0\0\0\27\0\0\0\0\0\363\237\4\0\0\0\0\0\363\237\4\0\0\0\0\0\0\20\0\0\0\0\0\0\1\0\0\0\6\0\0\0\340\245\33\0\0\0\0\0\340\265\33\0\0\0\0\0\340\265\33\0\0\0\0\0000P\0\0\0\0\0\0(\217\0\0\0\0\0\0\0\20\0\0\0\0\0\0\2\0\0\0\6\0\0\0\200\313\33\0\0\0\0\0\200\333\33\0\0\0\0\0\200\333\33\0\0\0\0\0\340\1\0\0\0\0\0\0\340\1\0\0\0\0\0\0\10\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\340\2\0\0\0\0\0\0\340\2\0\0\0\0\0\0\340\2\0\0\0\0\0\0D\0\0\0\0\0\0\0D\0\0\0\0\0\0\0\4\0\0\0\0\0\0\0\7\0\0\0\4\0\0\0\340\245\33\0\0\0\0\0\340\265\33\0\0\0\0\0\340\265\33\0\0\0\0\0\20\0\0\0\0\0\0\0\220\0\0\0\0\0\0\0\10\0\0\0\0\0\0\0P\345td\4\0\0\0<?\31\0\0\0\0\0<?\31\0\0\0\0\0<?\31\0\0\0\0\0\264a\0\0\0\0\0\0\264a\0\0\0\0\0\0\4\0\0\0\0\0\0\0Q\345td\6\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0R\345td\4\0\0\0\340\245\33\0\0\0\0\0\340\265\33\0\0\0\0\0\340\265\33\0\0\0\0\0 *\0\0\0\0\0\0 *\0\0\0\0\0\0\1\0\0\0\0\0\0\0\4\0\0\0\24\0\0\0\3\0\0\0GNU\0.Z\274\356\224\363\274\276\327\273\240\224\363A\7\n%\205\242\272\4\0\0\0\20\0\0\0\1\0\0\0GNU\0\0\0\0\0\3\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\371\3\0\0B\t\0\0\363\1\0\0:\3\0\0\4\t\0\0<\4\0\0", 832) = 832
ioctl(0, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {B115200 -opost -isig -icanon -echo ....}) = 0
ioctl(0, TCGETS, {B115200 -opost -isig -icanon -echo ...}) = 0
read(5, "# Locale name alias data base.\n# Copyright (C) 1996-2020 Free Software Foundation, Inc.\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 2, or (at your option)\n# any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, see <https://www.gnu.org/licenses/>.\n\n# The format of this file is the same as for the corresponding file of\n# the X Window System, which normally can be found in\n#\t/usr/lib/X11/locale/locale.alias\n# A single line contains two fields: an alias and a substitution value.\n# All entries are case independent.\n\n# Note: This file is obsolete and is kept around for the time being for\n# backward compatibility. Nobody should rely on the names defined here.\n# Locales should always be specified by their full name.\n\n# Note: This file used to contain the following lines:\n#\tbokmaal\t\tnb_NO.ISO-8859-1\n#\tfranc,ais\tfr_FR.ISO-8859-1\n# except that the \"aa\" was actually the byte '\\0xE5' (the Latin-1\n# encoding for U+00E5 LATIN SMALL LETTER A WITH RING ABOVE) and the\n# \"c,\" was actually the byte '\\xE7' (the Latin-1 encoding for U+00E7\n# LATIN SMALL LETTER C WITH CEDILLA). These lines were removed\n# because they caused 'locale -a' to output text encoded in Latin-1,\n# which broke applications in UTF-8 locales. See:\n# https://sourceware.org/bugzilla/show_bug.cgi?id=18412\n\nbokmal\t\tnb_NO.ISO-8859-1\ncatalan\t\tca_ES.ISO-8859-1\ncroatian\thr_HR.ISO-8859-2\nczech\t\tcs_CZ.ISO-8859-2\ndanish da_DK.ISO-8859-1\ndansk\t\tda_DK.ISO-8859-1\ndeutsch\t\tde_DE.ISO-8859-1\ndutch\t\tnl_NL.ISO-8859-1\neesti\t\tet_EE.ISO-8859-15\nestonian\tet_EE.ISO-8859-15\nfinnish fi_FI.ISO-8859-1\nfrench\t\tfr_FR.ISO-8859-1\ngalego\t\tgl_ES.ISO-8859-1\ngalician\tgl_ES.ISO-8859-1\ngerman\t\tde_DE.ISO-8859-1\ngreek el_GR.ISO-8859-7\nhebrew he_IL.ISO-8859-8\nhrvatski\thr_HR.ISO-8859-2\nhungarian hu_HU.ISO-8859-2\nicelandic is_IS.ISO-8859-1\nitalian it_IT.ISO-8859-1\njapanese\tja_JP.eucJP\njapanese.euc\tja_JP.eucJP\nja_JP\t\tja_JP.eucJP\nja_JP.ujis\tja_JP.eucJP\njapanese.sjis\tja_JP.SJIS\nkorean\t\tko_KR.eucKR\nkorean.euc \tko_KR.eucKR\nko_KR\t\tko_KR.eucKR\nlithuanian lt_LT.ISO-8859-13\nno_NO\t\tnb_NO.ISO-8859-1\nno_NO.ISO-8859-1 nb_NO.ISO-8859-1\nnorwegian nb_NO.ISO-8859-1\nnynorsk\t\tnn_NO.ISO-8859-1\npolish pl_PL.ISO-8859-2\nportuguese pt_PT.ISO-8859-1\nromanian ro_RO.ISO-8859-2\nrussian ru_RU.KOI8-R\nslovak sk_SK.ISO-8859-2\nslovene sl_SI.ISO-8859-2\nslovenian sl_SI.ISO-8859-2\nspanish es_ES.ISO-8859-1\nswedish sv_SE.ISO-8859-1\nthai\t\tth_TH.TIS-620\nturkish tr_TR.ISO-8859-9\n", 4096) = 2996
read(5, "", 4096) = 0
write(2, "Sending te.hex, 353 blocks: ", 28) = 28
write(2, "Give your local XMODEM receive command now.", 43) = 43
write(2, "\r\n", 2) = 2
read(0, 0x5bd9939fec60, 128) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
read(4, ":200100002A06002E00F9110002B7ED522B22910111774BED538F01B7ED52232293013024DA\n:200120000E09112B01CD0500C3000052756E74696D652045727", 128) = 128
write(2, "\r", 1) = 1
write(2, "Xmodem sectors/kbytes sent: 0/ 0k", 35) = 35
write(1, "\1\1\376:200100002A06002E00F9110002B7ED522B22910111774BED538F01B7ED52232293013024DA\n:200120000E09112B01CD0500C3000052756E74696D652045727\267", 132) = 132
read(0, 0x5bd9939fec60, 128) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
write(2, "Retry 0: ", 9) = 9
write(2, "Timeout on sector ACK", 21) = 21
write(2, "\n", 1) = 1
write(1, "\1\1\376:200100002A06002E00F9110002B7ED522B22910111774BED538F01B7ED52232293013024DA\n:200120000E09112B01CD0500C3000052756E74696D652045727\267", 132) = 132
read(0, 0x5bd9939fec60, 128) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
write(2, "Retry 0: ", 9) = 9
write(2, "Timeout on sector ACK", 21) = 21
write(2, "\n", 1) = 1
write(1, "\1\1\376:200100002A06002E00F9110002B7ED522B22910111774BED538F01B7ED52232293013024DA\n:200120000E09112B01CD0500C3000052756E74696D652045727\267", 132) = 132
read(0, 0x5bd9939fec60, 128) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)

Re: Linux -> CP/M XMODEM transfer timeout

<edudnT6ZmsD1eyj_nZ2dnUU7-X_NnZ2d@giganews.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 24 Jun 2022 11:29:28 -0500
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> <a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com> <yMidnQXFrc-m9y7_nZ2dnUU7-b-dnZ2d@giganews.com> <1a971f25-25ac-4fed-a27c-8ed00f681cabn@googlegroups.com> <u8ydnSnz4YtDWC7_nZ2dnUU7-dnNnZ2d@giganews.com> <6ed2cb51-9a88-4a99-887c-048b068881e2n@googlegroups.com> <y82dnYg8Q9zCHCn_nZ2dnUU7-bnNnZ2d@giganews.com> <3ef9e4b0-77f9-4a15-a409-16bf4d89a257n@googlegroups.com> <29b3aadb-ba94-4ab9-b155-3f741d70cfe9n@googlegroups.com>
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (FreeBSD/13.0-RELEASE-p6 (amd64))
Message-ID: <edudnT6ZmsD1eyj_nZ2dnUU7-X_NnZ2d@giganews.com>
Date: Fri, 24 Jun 2022 11:29:28 -0500
Lines: 25
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-iaM0tIkcY1RD/KB5zKwY3DKpMC1QyJy3XrCUiGKr/W1bJRQY1uwt8yzJJY5bD/saeo/0aHRtImJlBmX!TeOKYfpDh8flGKphmmSetkXvkKkq3yoDrqFo0iIMw7aCYS1w5tWg0EzmyQeygLejsuM1LqQ=
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
X-Original-Bytes: 3062
 by: Dennis Boone - Fri, 24 Jun 2022 16:29 UTC

> write(1, "\1\1\376:200100002A06002E00F9110002B7ED522B22910111774BED538F01B7ED52232293013024DA\n:200120000E09112B01CD0500C3000052756E74696D652045727\267", 132) = 132
> read(0, 0x5bd9939fec60, 128) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
> --- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
> write(2, "Retry 0: ", 9) = 9
> write(2, "Timeout on sector ACK", 21) = 21
> write(2, "\n", 1) = 1
> write(1, "\1\1\376:200100002A06002E00F9110002B7ED522B22910111774BED538F01B7ED52232293013024DA\n:200120000E09112B01CD0500C3000052756E74696D652045727\267", 132) = 132
> read(0, 0x5bd9939fec60, 128) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
> --- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---
> write(2, "Retry 0: ", 9) = 9
> write(2, "Timeout on sector ACK", 21) = 21
> write(2, "\n", 1) = 1
> write(1, "\1\1\376:200100002A06002E00F9110002B7ED522B22910111774BED538F01B7ED52232293013024DA\n:200120000E09112B01CD0500C3000052756E74696D652045727\267", 132) = 132
> read(0, 0x5bd9939fec60, 128) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)

So it never actually gets _anything_ back from the serial port. Wonder
if we're chasing something about how the file units are getting mapped,
rather than a transfer issue.

Does your Minicom setup for xmodem look like this (other than having
added the strace stuff to the command)?

C xmodem sx -vv Y U N Y N

De

Re: Linux -> CP/M XMODEM transfer timeout

<03909161-3514-45d1-9030-c22719008dabn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a05:6000:1448:b0:21b:b7db:c40b with SMTP id v8-20020a056000144800b0021bb7dbc40bmr398004wrx.279.1656094320422;
Fri, 24 Jun 2022 11:12:00 -0700 (PDT)
X-Received: by 2002:a05:6808:10d3:b0:32f:51ae:6245 with SMTP id
s19-20020a05680810d300b0032f51ae6245mr2882066ois.125.1656094319873; Fri, 24
Jun 2022 11:11:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 24 Jun 2022 11:11:59 -0700 (PDT)
In-Reply-To: <edudnT6ZmsD1eyj_nZ2dnUU7-X_NnZ2d@giganews.com>
Injection-Info: google-groups.googlegroups.com; posting-host=37.183.142.113; posting-account=uOUOHg4AAADo8AO9B3SI43ekV3AA6lU0
NNTP-Posting-Host: 37.183.142.113
References: <1e84d63c-23cb-418a-944c-fd53b99c3524n@googlegroups.com>
<a24f8ccc-5358-4db8-b80c-deaa5810ba3en@googlegroups.com> <yMidnQXFrc-m9y7_nZ2dnUU7-b-dnZ2d@giganews.com>
<1a971f25-25ac-4fed-a27c-8ed00f681cabn@googlegroups.com> <u8ydnSnz4YtDWC7_nZ2dnUU7-dnNnZ2d@giganews.com>
<6ed2cb51-9a88-4a99-887c-048b068881e2n@googlegroups.com> <y82dnYg8Q9zCHCn_nZ2dnUU7-bnNnZ2d@giganews.com>
<3ef9e4b0-77f9-4a15-a409-16bf4d89a257n@googlegroups.com> <29b3aadb-ba94-4ab9-b155-3f741d70cfe9n@googlegroups.com>
<edudnT6ZmsD1eyj_nZ2dnUU7-X_NnZ2d@giganews.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <03909161-3514-45d1-9030-c22719008dabn@googlegroups.com>
Subject: Re: Linux -> CP/M XMODEM transfer timeout
From: paolo.amoroso@gmail.com (Paolo Amoroso)
Injection-Date: Fri, 24 Jun 2022 18:12:00 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Paolo Amoroso - Fri, 24 Jun 2022 18:11 UTC

On Friday, June 24, 2022 at 6:29:34 PM UTC+2, Dennis Boone wrote:
> So it never actually gets _anything_ back from the serial port. Wonder
> if we're chasing something about how the file units are getting mapped,
> rather than a transfer issue.

That's interesting. Shouldn't this interfere also with CP/M -> Linux transfers, which instead work fine?

> Does your Minicom setup for xmodem look like this (other than having
> added the strace stuff to the command)?
>
> C xmodem sx -vv Y U N Y N

Yes, this is the relevant entry of the Minicom settings:

C xmodem sx -vv Y U N Y N

I tried a couple more things. Given that I want to transfer text files, I run sx -a -vv but it still led to timeouts. Also, running XMODEM FILENAME.TXT /X2 /R on C/PM aborts like this:

File created
Receiving via direct I/O with CRCs
ABORT: Sync fail
Empty file deleted

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor