News:

Want an XLerator? Please participate in the market research thread: https://lisalist2.com/index.php/topic,594.msg4180.html

Main Menu

Finally, a serial file transfer app for Lisa Workshop

Started by TorZidan, Yesterday at 08:25:57 PM

Previous topic - Next topic

TorZidan

Finally, a serial file transfer app for Lisa Workshop 3.0.
I've been itching to write this for a long time, but the use of Pascal was a stopper. AI finally comes to the rescue.

Find it at https://github.com/TorZidan/LisaSerialFtp . Both a floppy disk image and a ProFile disk image with the tool on them are available there. The source code is, too.

All user interaction happens in the client app; the python-based server just runs on your PC. Reason for this choice: you can integrate the client app in a Workshop macro file that downloads, compiles and links your app, all with just one command (example is included in the sources).

It has everything you may want from such app: CRC checks, retries (re-sending of failed chunks of data), supports both binary and text file downloads and uploads, does new-line conversion to-and-from Lisa style \r lines, can do baud rate negotiation, can list and delete local and server files, and more.

Works well with LisaEm over a PseudoTTY connection, as well as with real Lisa over a serial cable. Curious if it will work with LisaFPGA.

Achieves a 3 KB download speed on a real Lisa and 54KB/s in LisaEm. Sounds puny in today's terabyte measurements, but is well suitable for pushing your code to the Lisa.

Written with help from Qwen AI running on my video card and from Claude AI. Impressively, Claude was able to rewrite the slow, CPU-intensive parts of the Pascal code (such as CRC-16 calculation) in 68k CPU assembly, and the code worked from the very first try.

And finally ... I hope this will not confuse you: You can also run the server from a web page on your PC. No python needed. No need to download any server code. Just go to https://torzidan.github.io/LisaSerialFtp/src/web-based-server/ in a Chrome or Edge browser and "figure it out". Limitation: the web page can communicate only to a real serial port, not to a PseudoTTY port (like the one used by LisaEm). So it does not work with LisaEm...

Feedback is wanted and welcome. Enjoy.

sigma7

Quote from: TorZidan on <strong>Yesterday</strong> at 08:25:57 PMFeedback is wanted and welcome. Enjoy.

Another awesome contribution, thanks!

Looking forward to trying it out and seeing how Claude's 68k assembly reads... to me this seems like a very good and ethical application of AI.
Warning: Memory errors found. ECC non-functional. Verify comments if accuracy is important to you.

bmwcyclist

Using my LISA for writing blogs and other work projects, and for fun and games at home.
Visit my shares on GlobalTalk! LISAGamingZone
Check out the NEW Lisa Software! https://github.com/GyroPilot
telnet theapplelisabbs.duckdns.org 1983