Xmodem

447 views
Skip to first unread message

David Hester

unread,
Apr 17, 2017, 12:29:05 PM4/17/17
to RC2014-Z80
Following on from the other thread does anyone use xmodem or similar file tranfer programs as an alternative to Grant Searles filepackage program to get programs from a windows pc to the cpm system?

Daniel Quadros

unread,
Apr 17, 2017, 1:27:15 PM4/17/17
to RC2014-Z80
Not (yet) with the RC2014 CP/M system, but I use it with my monitor(1) and used it in the late 80's while running CP/M in a Apple II clone(2). When I get and assemble my RC2014 CP/M system I will try to port my cp/m xmodem program (assuming I can get its source out of 30 years old floppies).


DQ

David Hester

unread,
Jul 24, 2017, 5:21:32 PM7/24/17
to RC2014-Z80
Daniel

Is there an assmebled version of your monitor programme as I am having trouble copying the source to the rc2014. Bit chicken and egg, I need xmodem to ransfer the source and need the source to comile xmodem!

Ed Brindley

unread,
Jul 25, 2017, 6:03:59 AM7/25/17
to RC2014-Z80
I'm using Scott Baker's fork of RomWBW on my RC2014, and the xmodem included in the romdisk works well.

A built version of it is in the github repo in this directory: https://github.com/sbelectronics/RomWBW/tree/master/Source/RomDsk/smb_acia

There are versions under the SIO and ACIA dirs, I'm not sure if the executables are different for different serial chips (I'd have thought they are the same and use BIOS calls).

To receive a file I use:

xmodem filename.ext /r /x0 

On the PC end I'm using picocom under linux to send.

Thanks,
Ed

David Hester

unread,
Jul 25, 2017, 2:31:55 PM7/25/17
to RC2014-Z80
Thanks for the link but I am having trouble getting the file on to the system, I use the binery to cpm programe and copy and paste the text but I get 11 dots and then a file length error. Is there any other way of getting files on to the cpm system/cf card?

Spencer Owen

unread,
Jul 25, 2017, 2:45:10 PM7/25/17
to rc201...@googlegroups.com
Hi David,

If you're using the download.com program to transfer the file then you'll probably need to add a short (1ms) delay between characters as there's very little buffering going on.

If you want to put the files on the CF directly, then take a look at this thread; https://groups.google.com/forum/m/?utm_medium=email&utm_source=footer#!msg/rc2014-z80/VD22SEht0PY/xEhCtc3fBQAJ The cpmcbfs worked well for me under Windows.

Spencer 

--
You received this message because you are subscribed to the Google Groups "RC2014-Z80" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rc2014-z80+unsubscribe@googlegroups.com.
To post to this group, send email to rc201...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rc2014-z80/a3fae837-0ec5-4a46-978f-3b3d75105338%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

David Hester

unread,
Jul 25, 2017, 3:57:30 PM7/25/17
to RC2014-Z80
Spencer

I have a 1ms set but still get the error. I am going to try a different pc an I will also try cpmcbfs on the other pc.

Thanks for the help.

David Hardingham

unread,
Jul 26, 2017, 4:52:58 PM7/26/17
to RC2014-Z80
Seems like you guys have found something else for me to try. I'm also keen to get XMODEM onto my RC2014. I have an SIO/2 for the serial ports, so I should be OK. Lots of new stuff to try when I have some spare time.

Many thanks to everyone on  this topic.

David

David Hester

unread,
Jul 29, 2017, 1:57:05 PM7/29/17
to RC2014-Z80
Ed

Sorry to be a complete pain but how do I use picocom.

I have now connected teh RC2014 to a Udoo x86 running ubuntu 16.04 and installed Picocom. I can use picocom to connect to the rc2014 and get the cpm prompt and run programms.

How do i transfer using picocom. I run xmodem on the rc2014 as xmodem ws.com /r /x0 and in picocom do C-a -s to send the program, then I am stuck.

WHen I had the rc2014 connected to my windows pc running tera term I did teh same command on cpm then used the file transfer menu in tera term on sent via xmodem but I only was able to send 32 bytes before everything froze.

I am hoping linux is better.


On Tuesday, 25 July 2017 11:03:59 UTC+1, Ed Brindley wrote:

Ed Brindley

unread,
Jul 30, 2017, 5:41:54 PM7/30/17
to RC2014-Z80
Hi David,

Picocom (and alternatives such as minicom) use another program sx to do the xmodem transfers, which is part of lrzsz, so you need that installed as well. It seems to be available on most distros. http://manpages.ubuntu.com/manpages/zesty/man1/sz.1.html

Then I start picocom with: picocom --baud 115200 /dev/ttyUSB0 --send-cmd "sx" --omap delbs

When you do C-a C-s, it should prompt you for the name of the file to transfer.

Hope that helps,
Ed

David Hardingham

unread,
Jul 31, 2017, 4:26:44 PM7/31/17
to RC2014-Z80
I now have XMODEM on my RC2014, but it doesn't seem to do anything. Am a missing a .CFG file? Is one needed?

When I type:

     xmodem myfile.ext /r /x0

I get another command prompt immediately. Any guesses?

I'm using the SMB SIO version of XMODEM, since my UART is Scott's SIO/2 board.

David

PianoMatt

unread,
Jul 31, 2017, 4:33:20 PM7/31/17
to RC2014-Z80
I tried using the version from RomWBW and it failed to transfer anything. I'm not sure if this has anything to do with it but that particular build is set up to try to use the "CON:" device, and as far as I am aware in Grant Searle's implementation CON: is called CRT:
Reply all
Reply to author
Forward
0 new messages