Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 14:17 19 Nov 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 : CMM2: XMODEM SEND specification or source code available

Author Message
Vampire05
Regular Member

Joined: 06/12/2020
Location: Germany
Posts: 88
Posted: 06:43pm 09 Aug 2021
Copy link to clipboard 
Print this post

Hi Guys,

i am able to receive data over XMODEM RECEIVE but the XMODEM SEND does not work for me. Are there specifications / source code available for the CMM2 XMODEM SEND implementation? There are many different xmodem implementations out there. It would be great to know how this is implemented on the CMM2 5.07.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4147
Posted: 09:33am 10 Aug 2021
Copy link to clipboard 
Print this post

You can request the source code but obviously no-one can provide any other help unless you say in enough detail what you've tried (& which OS etc).

John
 
frnno967
Senior Member

Joined: 02/10/2020
Location: United States
Posts: 105
Posted: 12:53pm 11 Aug 2021
Copy link to clipboard 
Print this post

  Vampire05 said  Hi Guys,

i am able to receive data over XMODEM RECEIVE but the XMODEM SEND does not work for me. Are there specifications / source code available for the CMM2 XMODEM SEND implementation? There are many different xmodem implementations out there. It would be great to know how this is implemented on the CMM2 5.07.


The Xmodem routine in the firmware is the original version using Checksum and 128 byte packets. I don't believe it supports CRC or 1k.
Jay Crutti: Ham Radio Operator, K5JCJ. Computer Enthusiast. Musician. Engineer.
 
Vampire05
Regular Member

Joined: 06/12/2020
Location: Germany
Posts: 88
Posted: 04:51pm 11 Aug 2021
Copy link to clipboard 
Print this post

Ok thank you guys! Even without crc the xmodem send does not work for me.
I have ordered a cheap logic analyzer at amazon. I think it would be difficult to find out what's going on in the uart communication without capturing the traffic.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10610
Posted: 05:40pm 11 Aug 2021
Copy link to clipboard 
Print this post

  Quote  Even without crc the xmodem send does not work for me.


Check with teraterm before going any further. Assuming that works then you will need to dig deeper
 
Vampire05
Regular Member

Joined: 06/12/2020
Location: Germany
Posts: 88
Posted: 06:05pm 11 Aug 2021
Copy link to clipboard 
Print this post

Good idea Peter  
 
Vampire05
Regular Member

Joined: 06/12/2020
Location: Germany
Posts: 88
Posted: 05:56pm 12 Aug 2021
Copy link to clipboard 
Print this post

Ok i had no luck.
i hooked up my new 9 Euro Logic analyzer  and recorded some strange behaviour i can not explain:




Channel 0 is the receiver (Arduino) and Channel 1 is the CMM2.

The code is:

print #1, "receive " + args(2)
xmodem send args(2), 1


The Receiver sends correctly a <NAK>. Why the CMM2 responds with an <EOT> ????
 
Vampire05
Regular Member

Joined: 06/12/2020
Location: Germany
Posts: 88
Posted: 06:06pm 12 Aug 2021
Copy link to clipboard 
Print this post

Ok got it!

   

test2.bas is an empty file. i am sitting here some houers an try to send an empty file  
 
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