bozimmerman / Zimodem

ESP8266/ESP32/Arduino custom modem<->internet simulator with lots of features
Apache License 2.0
381 stars 85 forks source link

Problem uploading files #140

Open Benemerit opened 1 week ago

Benemerit commented 1 week ago

Hello bozimmerman

First, congratulations on the "invention". It has been wonderful to be able to follow your project and create a modem for the Amstrad PPC (and the 486), and to be able to connect to an endless number of BBS. I am writing to you because I have been trying many times to upload a file to the Amstrad BBS (amstrad.simulant.uk), but I am not able to. I have tried two applications (Kermit and Telix), and in the first I saw that the upload protocol was not supported by the BBS. But in the second application (telix) I have seen the possibility of uploading via 4 protocols: zmodem, xmodem, ymodem and ymodem-g. I have tried all 4, but there is no way to upload a binary file. In all of them the upload starts, but suddenly, randomly, it is cut off, it remains blocked, and after a few seconds it gives an error. I have tried multiple configurations and even changing the FLOW, but nothing, there is no way.

I thought I read that there is some problem with uploading files.

The board is "Lolin V3 ESP8266 ESP-12F". As I say, I connect and navigate the BBS well (many of them). I even download files well, but the upload, no matter how many times I have tried, I can never finish it successfully.

I thought I read something similar in other forums with your firmware, but I'm not 100% sure.

Does it occur to you what I might be doing wrong and/or what I can try?

Thank you!

bozimmerman commented 1 week ago

Try using ATD to connect to the BBS instead of ATDT. Upcoming/later versions will not have this confusing issue by default.

Benemerit commented 5 days ago

THanks for your reply Bozimmerman.

I always use ATD . And i have a connection in the connection book configured, and telnet translation is off. I have tried everything I could. I even thought that it could be the machine, due to low memory (although it wouldn't make sense, but oh well), and I tried again with the 486 and a more modern software for Win 3.11, in case I had more options and it gave me a clue.

File uploads always fail me. I have tried several types of files, in case it is something specific to syncronet for Linux (it is the amstrad.simulant.uk:464 BBS).

It's as if the chain it sends is either not complete, or has too much... I don't know.

I have uploaded a small video of the climb: https://www.youtube.com/watch?v=5TZz6gAz1u0

bozimmerman commented 5 days ago

Thanks, I'll try that BBS and see if I can reproduce.

frnno967 commented 5 days ago

Not to pile on, but I have also had this issue with the Zimodem firmware for a few years now. Bo, this file transfer problem is what I mentioned to you that day of your talk at VCF Southwest 2023 if you recall. it just seems to either drop characters or somehow corrupt the data stream when the data starts flowing fast. Jim Drew mentioned that he thought it was an underlying problem with the espressif library code, but not sure how much, if any, of that you have implemented in Zimodem. And it seems to be independent of file transfer protocol, as it doesn't work with any protocol I've tried. Thanks

bozimmerman commented 5 days ago

Well, it's definitely not an always-everywhere-broken type thing, as I was uploading files to my BBS just last night using Novaterm and X-Modem w/o issues. Maybe it's a baud rate issue, or flow control, or the size of the packets. shrug Won't know until I can reliably recreate it over and over again. I did talk to Jim Drew once, but he explained that the issue he found was with Incoming packets (which would break downloads more than uploads of course). Unfortunately, I don't think Jim Drew's code is open source, so I wouldn't be able to learn anything from it anyhow. If I'm wrong on that, please LMK.

Benemerit commented 5 days ago

I don't know if it can help debug this error. The truth is that it is frustrating, because the firmware is great in everything. Being able to connect to the old BBS from the old machines is wonderful. So: With XON/XOFF it usually increases more, but in the end it is always cut at almost 80% in the same way. With RTS/CTS the rise is usually cut at around 10, 20%, just like without any flow control. I have also tried with the ATS45 command but still the same. I've tried so many things that I don't even know anymore... I think they're going to kick me out of the bbs XD With x-modem, the BBS recognizes that something has arrived but always, in all cases, it thinks that a file of 128 bytes size has been uploaded. So it doesn't rise well either. And with y-modem (with and without G), nothing, the file does not upload well either. I have also done tests at 1200, 9600, 19200, 38400... etc... Slower but still, it cuts.

Benemerit commented 4 days ago

HI,

If it can help, i have take a new video trying to upload with my PPC and telix sofware with the modem set at 2400 Bauds (8n1). https://www.youtube.com/watch?v=Rgi0ZSiADG8

bozimmerman commented 1 day ago

Thanks. I'm writing a bunch of local tests today that might hopefully reproduce the issue.