VKontakte.DJ
forum traveling
 

Celestial Software

...better by design

Home Support SSH Client Forums
Welcome, Guest
Please Login or Register.    Lost Password?
XModem transfer (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: XModem transfer
#2547
XModem transfer 13 Years, 5 Months ago  
Hello. I use an Absolute telnet 9.12 Lite and have a problem with transmitting XModem files.
My receiver is the ARM board, connected with PC via RS232.
Transmitting is sometimes breaked due to a lot of NAK from receiver, sometimes finished, but with repeat packets.
Transmitting using HyperTerminal is always OK.

From the log it can be seen that AT sends 1st packet, then repeat it without ACK from the receiver.
Transmittion is always OK, if after Send->XModemCRC I quickly (<1sec) choose a file to transmit.
In this time receiver sends 'C' with 1sec period. So, may be AT perceives 'C' as answer on 1st packet? And because it is not a ACK, send repeat packet.

Log in attached file.

Sorry for my english.
File Attachment:
File Name: errlog_AT.txt
File Size: 6125
Rogov (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2549
Re:XModem transfer 13 Years, 5 Months ago  
Sure, I'll look into it.

Thanks for the excellent logfile!

Brian
bpence (Admin)
Admin
Posts: 1404
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#2550
Re:XModem transfer 13 Years, 5 Months ago  
Who implemented the code on the receiver side?

Brian
bpence (Admin)
Admin
Posts: 1404
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#2553
Re:XModem transfer 13 Years, 5 Months ago  
Receiver's code is written by me, so it can contain bugs. But it's behavior looks correct in logs.
Rogov (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2554
Re:XModem transfer 13 Years, 5 Months ago  
Generally, the receiver should not worry about packets being sent multiple times. That is why they are sequenced. You can just discard the second one. Remember, XModem is written to be used across an unreliable medium, such as RS232. Your code should be able to deal with both lost and duplicated packets.

Hyperterminal may give you the ideal scenario where you get each packet once, but you can hardly rely on that behavior, especially with larger files and longer transmission times.

Brian
bpence (Admin)
Admin
Posts: 1404
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
#2555
Re:XModem transfer 13 Years, 5 Months ago  
Receiver's code ignore repeat packet after correct packet. But problem is that transmitter send repeat packet without waiting answer. My code is not send ACK, while handling packet.
Rogov (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged  
 
The administrator has disabled public write access.  
#2556
Re:XModem transfer 13 Years, 5 Months ago  
In a robust implementation, it shouldn't matter. Just discard the duplicate and move on.

Brian
bpence (Admin)
Admin
Posts: 1404
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Brian Pence
Celestial Software
SSH , SFTP, and Telnet in a tabbed interface for Windows XP, Vista, Mobile, and others
 
The administrator has disabled public write access.  
Go to top