abruno17
Experienced Member
This is a bit of a dumb question but I thought I’d ask to settle my curiosity. Could I transfer files from a usb stick through an adapter to the serial port and treat it as an external drive of sorts to write floppies?
What about a usb floppy drive?No, since an USB stick is dumb. It has no server running on it that could serve you files over serial.
He did say "adapter", which could be just about anything...No, since an USB stick is dumb. It has no server running on it that could serve you files over serial.
Yes, but performance would be abysmal. Additionally, I am not aware of any standardized protocol to do so on the PC. Custom protocols do exist, e.g. Norton Commander or INTERLNK/INTERSVR, but I don't know whether they have been documented well enough.Could I transfer files from a usb stick through an adapter to the serial port and treat it as an external drive of sorts to write floppies?
I think a GoTek would be the best solution. All PCs support at least one floppy. Make images of the floppy on a PC, copy the images to the USB stick and then do a disk copy to get to a real floppy. If you want to copy individual files then perhaps load some DOS TCPIP software, create a SLIP or PPP connection via a serial port. I think the KA9Q software is still around but other solutions exist.This is a bit of a dumb question but I thought I’d ask to settle my curiosity. Could I transfer files from a usb stick through an adapter to the serial port and treat it as an external drive of sorts to write floppies?
Whilst its not the fastest you can you Kermit to transfer files. I think you can use kermit-2-kermit connections....Yes, but performance would be abysmal. Additionally, I am not aware of any standardized protocol to do so on the PC. Custom protocols do exist, e.g. Norton Commander or INTERLNK/INTERSVR, but I don't know whether they have been documented well enough.
Therefore, you need to invent both sides of the equation: A controller speaking both "USB mass storage class" and serial, and PC software implementing the "external drive" using the serial port. It is lots of work, but code for all parts is commonly available. Good luck.
I have done something like this before in a CP/M bring-up: Before I had actual storage support working, I used a small self-written Linux terminal program (think "picocom") which intercepted special escape sequences to send and receive sectors from image files. A matching driver in the CP/M BIOS made those files available to CP/M. Performance was somewhat acceptable, but it was never fully reliable. But it worked well enough to develop and test the true storage driver.