VGAclocks


Author Message
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 456
Posted: 08:45pm 07 May 2025      

@bfwolf
  bfwolf said  
  dddns said  Exactly what I ment and I'm using just a simple cat file.bas > /dev/ttyACM0


I think "simple copying" with "cat file.bas > /dev/ttyACM0" actually overwhelms PicoMite. The data has to go through the tokenizer and then be saved to flash. I already had problems when I tried to transfer a short text (Basic) from TeraTerm to PicoMite via the clipboard. Only garbage ended up in memory. Only after I set a character delay of a few ms and an additional line delay of about 50 ms in TeraTerm did it work without errors.
Unfortunately, like many other terminal programs, you can't set a "wait for <char> at the end of the line" option in TeraTerm. I once had a terminal program (I think under Windows 3.x) that allowed you to do that. If you set the "prompt" character, it worked perfectly even without the character delay.

bfwolf


In Linux you don't really need a terminal. If you open e.g. gnome-terminal then this is fully VT-100 compatible terminal emulation already.
This is what you need to feed it:
Usage: ascii-xfr -s|-r [-dvn] [-l linedelay] [-c character delay] filename

I have integrated it into geany:


the script I call from geany:
stty -F /dev/ttyACM0 115200 -parenb cs8 -cstopb
echo "autosave" > /dev/ttyACM0
sleep 2
ascii-xfr -s $1 -l 25 > /dev/ttyACM0
sleep 2
printf "\x1a" > /dev/ttyACM0


I tried it and 25ms make the transfer completely error free, checked a hundred times now. I can Upload, run and ctrl-c now within the editor
Edited 2025-05-08 08:22 by dddns