PDA

View Full Version : DIY File Transfer Software Project



SpidersWeb
April 20th, 2014, 10:04 PM
Just wanted to share. Been having a bit of fun this afternoon.

In 2012 I started writing my own file transfer app with remote upload - front end being compatible with Windows XP/Vista/7/8 and back end being compatible with DOS 2 and an 8088. I ended up just leaving it alone but today I got inspired and started working on it again. After a few improvements, I've been dragging and dropping game folders on to my 486:

http://i83.photobucket.com/albums/j307/DrRabid/Baudband_Send_zpsb0876d12.png (http://s83.photobucket.com/user/DrRabid/media/Baudband_Send_zpsb0876d12.png.html)

That's using a $12 USB serial converter and Windows 7.
As it is, you can connect to the remote host, set the baud rate, change drive and/or browse around, and drag an drop files on to it.

The front end is written with C#, but the slave program is written in Borland Turbo C 3.0. I've tested the slave on a 5150, just using a 486 for development/testing because it's a lot faster to compile with.
I was just pretty happy to see it reliably be useful rather than just spitting out debug messages.

(Edit: just realised this should probably be under Programming not Software but too late now - can't remove it)

cr1901
April 20th, 2014, 10:23 PM
http://code.google.com/p/portable-serial-comms/

My version of the same thing :)... except I just provide a serial-routines library and command-line app. Only XMODEM is implemented, but it does work on both DOS and Windows (Linux port trivial using termios.h... I'm just lazy :D)! I wonder if my code could be plugged into your front end? EDIT: Probably not. X/YMODEM doesn't have provisions for file listing, but ZMODEM/Kermit does IIRC.

I should probably update this at some point... the code still needs to be refactored and converted back to ANSI C without C99 extensions.

SpidersWeb
April 20th, 2014, 10:46 PM
Awesome :)

I actually didn't even think about what existing protocol I could use. I'm just using a simple setup that sends one character commands followed by parameters. Wouldn't be compatible with anything else.
e.g. if the Windows app sends B followed by 4, the client changes the baud rate to 38,400 and renegotiates.

g4ugm
April 21st, 2014, 12:15 AM
In the past I have used this tool:-

http://joy.sophics.cz/parcp/download.htm

its licenced but the cost was worth it as its fast...

SpidersWeb
April 21st, 2014, 01:47 AM
Most of us enthusiasts will have our own and faster preferred tools - I just wanted a free and easy solution for the new guy with an XT and a modern laptop - not a single floppy disk needs to be written
It wont be the fastest or most flexible but hopefully very easy to use and very tolerant of cheap USB adapters.

The one I'm testing with cost $NZ12 (10 USD?) and that included delivery from China.

Quick picture of my environment on the DOS side.
http://i83.photobucket.com/albums/j307/DrRabid/BlvQFuPCAAA3I3S_zpsdf4fb1e4.jpg (http://s83.photobucket.com/user/DrRabid/media/BlvQFuPCAAA3I3S_zpsdf4fb1e4.jpg.html)
I'm not terribly experienced at C, so apologies if the code doesn't look perfect, but the bit in the picture is getting the drive's available.