![]() |
Forum Index : Microcontroller and PC projects : Xmodem redirect to COM port option
Author | Message | ||||
frnno967 Senior Member ![]() Joined: 02/10/2020 Location: United StatesPosts: 104 |
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 KingdomPosts: 4044 |
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 KingdomPosts: 10310 |
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 StatesPosts: 104 |
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 KingdomPosts: 4311 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |