Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:52 03 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 Send Fail.

     Page 1 of 2    
Author Message
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 08:45pm 14 Dec 2017
Copy link to clipboard 
Print this post

Hi all,

After months I decided to pull the log files from my Coms monitor.

Recall having no success in the past & nothing has changed.
The files are both around 900k now and when I try to transfer them with Xmodem, they fail after about 5k or 40 blocks.

Previously blamed Wifi, ESP's etc & didn't persist, but this morning I've discovered that MMEdit's File Master works like a dream, so all previous assumptions are now ruled out.

It's only using Teraterm that is not working for me.

MMedit has some retries, expect that, and I'd actually left it running during those transfers & could see the data flowing and spot the occasional data error that Xmodem would resend.

(They are on Wifi, hence I can have multiple console connections).
(And multiple connections were not present during failed attempts).

Any thoughts on why I can't perform simple transfers with Teraterm?
an't be much more than a basic setting.


Phil

 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 09:05pm 14 Dec 2017
Copy link to clipboard 
Print this post

Should add, I've changed nothing in the INI file regatds this,
this is all that's present & mostly commented out.

[Code]; XMODEM option (checksum/crc/1k)
XmodemOpt=checksum
; Binary flag for XMODEM Receive and ZMODEM Send (on/off)
XmodemBin=on

; XMODEM receive command
XmodemRcvCommand=

; Default directory for file transfers
;FileDir=C:\Program Files (x86)\teraterm
FileDir=C:\Transfers

; XMODEM log
XmodemLog=off

; XMODEM Timeout value(v1,v2,v3,v4,v5) by seconds
; v1=NAK mode: Timeout value for first packet
; v2=CRC mode: Timeout value for first packet
; v3=Timeout short time
; v4=Timeout long time
; v5=Timeout very long time
XmodemTimeouts=10,3,10,20,60

[/code]

Phil
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 10:44pm 14 Dec 2017
Copy link to clipboard 
Print this post

MMEdit has some ridiculously long timeouts, a legacy from the early days.

Can you try transferring the file in question to/from a more direct connection to see if it's a problem with the file itself rather than the path.

I would expect Teraterm to have a more correct implementation of Xmodem.

Jim


VK7JH
MMedit
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 12:17am 15 Dec 2017
Copy link to clipboard 
Print this post

You could try Rob's GFXterm:

1) Crank up GFXterm
2) Right-click terminal window, select LOG to file
3) Give the file a name and click OK
4) Start sending your data from the other end
5) When all the data has copied across, right-click terminal window again
6) Select STOP logging

Done.

I use GFXterm more and more now over TT just cos it is so simple, and it works.
With no disrespect to TT....Edited by Grogster 2017-12-16
Smoke makes things work. When the smoke gets out, it stops!
 
Azure

Guru

Joined: 09/11/2017
Location: Australia
Posts: 446
Posted: 12:23am 15 Dec 2017
Copy link to clipboard 
Print this post

I assume Log to file will have no error checking. So there is no way to know if the file received contains corrupt data from any transfer errors/dropouts or not.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 12:44am 15 Dec 2017
Copy link to clipboard 
Print this post

Correct.
Smoke makes things work. When the smoke gets out, it stops!
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 09:24am 15 Dec 2017
Copy link to clipboard 
Print this post

  Grogster said   You could try Rob's GFXterm:

1) Crank up GFXterm


I'd love to give it a try, but the catch is I've got all my devices on TCP/IP.

They work like a dream as far as monitoring the console & coded updates are concerned. Never an issues there with either MMedit or Teraterm.

And come to think of it, I've often sent code to them with TT via Xmodem with no issues.

It just seems downloading from the file system is the issues.


Phil.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 10:58pm 15 Dec 2017
Copy link to clipboard 
Print this post

You could try something like YAT.

I have not used this one, but it has TCP/IP abilities, so that might work for you.
Smoke makes things work. When the smoke gets out, it stops!
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 03:20am 16 Dec 2017
Copy link to clipboard 
Print this post

i recall a while back that someone had a micromite live on the web that people could connect to. is it still up there? i'd like to carry out some experiments to see if i can duplicate the functionality that is in teraterm.

this is JUST an experiment mind you, no promises!


cheers,
rob :-)
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 04:48am 16 Dec 2017
Copy link to clipboard 
Print this post

  robert.rozee said   i recall a while back that someone had a micromite live on the web that people could connect to. is it still up there? i'd like to carry out some experiments to see if i can duplicate the functionality that is in teraterm.

this is JUST an experiment mind you, no promises!


cheers,
rob :-)


tassyjim.ddns.net port 3002

It is an MX170 attached to a RPi running ser2net

Jim



VK7JH
MMedit
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 05:54am 16 Dec 2017
Copy link to clipboard 
Print this post

TT flatly refuses to talk to that, but YAT does:





I have yet to work out how to sent CTRL commands(such as CTRL+C etc) via YAT, but it does connect just fine.
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:01am 16 Dec 2017
Copy link to clipboard 
Print this post

  Grogster said   TT flatly refuses to talk to that, but YAT does:

I use teraterm all the time, locally and when traveling.

You need Telnet protocol and port 3002. That's all it should need.

Jim


VK7JH
MMedit
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 06:03am 16 Dec 2017
Copy link to clipboard 
Print this post

Refuses to connect.....





I have also tried VT100 terminal mode - same result: "Disconnected"

EDIT: 'SETUP' window just on image so you can see my setup. I did try clicking OK....Edited by Grogster 2017-12-17
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:13am 16 Dec 2017
Copy link to clipboard 
Print this post

Terminal type shouldn't matter



Your settings look OK so I have no idea why it doesn't connect.

Jim
VK7JH
MMedit
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 06:22am 16 Dec 2017
Copy link to clipboard 
Print this post

We'll put it down to a TT oddity.

I will keep experimenting. What version of TT are you using?
I am on 4.91
Smoke makes things work. When the smoke gets out, it stops!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:36am 16 Dec 2017
Copy link to clipboard 
Print this post

V4.94 but I have used earlier version without issue.

You were connecting by using "New connection" from the file menu?

VK7JH
MMedit
 
Azure

Guru

Joined: 09/11/2017
Location: Australia
Posts: 446
Posted: 06:44am 16 Dec 2017
Copy link to clipboard 
Print this post

I can connect to it in TT.

In the file menu open new connection, select the TCP/IP port you setup in settings and enter port 3002 and telnet as session and it connects.

I am not sure what it is supposed to do, just seems to be send a loopback of what I type when I press enter.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 06:50am 16 Dec 2017
Copy link to clipboard 
Print this post

@ Jim - Used 'New connection' put in that information: 'Connection timed out.'

@ Azure - Yep, same process here, but it rejects the connection. Timed out.

I don't really care - I was just playing around.
Smoke makes things work. When the smoke gets out, it stops!
 
led-bloon

Senior Member

Joined: 21/12/2014
Location: Australia
Posts: 207
Posted: 07:51am 16 Dec 2017
Copy link to clipboard 
Print this post

Just logged in to tassyjim.ddns.net using Putty .. the micromite is at the command prompt and I can list the program on it!
Will run it now!
MM running now and spitting out data

edit:
Beware - connecting to it and sending CTL-C will halt the program just like being
connected directly to it.
Edited by led-bloon 2017-12-17
Miss you George
 
Azure

Guru

Joined: 09/11/2017
Location: Australia
Posts: 446
Posted: 08:18am 16 Dec 2017
Copy link to clipboard 
Print this post

@Grogster

I noticed when you select the telnet option it changes the port number you may have already typed in. It will timeout trying to connect to that port.

Sequence is:
Select TCP/IP and tassy...
Select Telnet option
Enter port 3002

Hope that helps.
 
     Page 1 of 2    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025