Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:31 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Xmodem redirect to COM port option

Author Message
frnno967
Senior Member

Joined: 02/10/2020
Location: United States
Posts: 104
Posted: 03:49pm 09 Oct 2020
Copy link to clipboard 
Print this post

This is half question/half feature request. I'm trying to add Xmodem functionality to the simple terminal datawiz wrote. It appears that the Xmodem receive and send commands are hard coded to only interact with the Console Serial port over the USB B connector.

Is there a way to call those commands from a Basic program and have them redirect to COM1 or COM2? Or could a feature request be considered to add an option to the command to declare the port? I know the alternative is to write Xmodem software routines in Basic to implement this, but it seems like reinventing the wheel if the functionality is already in Basic.

Thank you.
Jay Crutti: Ham Radio Operator, K5JCJ. Computer Enthusiast. Musician. Engineer.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 04:15pm 09 Oct 2020
Copy link to clipboard 
Print this post

It does seem a bit unnecessary, but if done the CRC function is already on fruitoftheshed

John
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 04:40pm 09 Oct 2020
Copy link to clipboard 
Print this post

Try the attached. You need to append 1 or 2 to the xmodem command and the serial port needs to be opened first.

open "com1:9600" as #1 'pick comport and baudrate as required
XMODEM S "myfile.txt",1
XMODEM R "newfile.txt",1



CMM2V1.5.zip
Edited 2020-10-10 02:55 by matherp
 
frnno967
Senior Member

Joined: 02/10/2020
Location: United States
Posts: 104
Posted: 07:19pm 09 Oct 2020
Copy link to clipboard 
Print this post

  matherp said  CMM2V1.5.zip


Is the zipped .bin file at the end of your reply something I need to install like a firmware?
Jay Crutti: Ham Radio Operator, K5JCJ. Computer Enthusiast. Musician. Engineer.
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 07:26pm 09 Oct 2020
Copy link to clipboard 
Print this post

  frnno967 said  
  matherp said  CMM2V1.5.zip


Is the zipped .bin file at the end of your reply something I need to install like a firmware?


Yes, instructions are in the manual. However the ground is moving so fast you probably want to install RC2 now, see end of this thread:

https://www.thebackshed.com/forum/ViewTopic.php?FID=16&TID=12881

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025