-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug? xmodem 0.2.4 transfers where 0.3.2+ does not. #14
Comments
Checked version 0.2.4 and it works, so something has changed somewhere post 0.2.4. |
Thanks for the report. I'll try to look into it today. -Kris On July 26, 2015 6:34:19 AM MDT, BrendanSimon notifications@github.com wrote:
Sent from my Android phone with K-9 Mail. Please excuse my brevity. |
@BrendanSimon -- assuming you have a virtualenv, or don't mind using root, you can install the latest development version from github as follows: $ pip uninstall xmodem # uninstall any version from pypi |
These can be difficult to reproduce, because you very likely have a device transmitting xmodem protocol that I do not have access to -- but any source code, debug output, etc. that you can provide would help! The latest version from github has the most helpful debug messages. |
Something happened in the following commit which causes my device to no longer respond after an XMODEM.send(). Interestingly, XMODEM.send() returns True, but further writes/reads don't succeed. Maybe it has to do with changes to getc() timeouts, or crc mode, or end or transmission acks ?? |
to restate,
there is debug logging in the latest master branch, please ! |
@jquast Nothing obvious pops out to me in XMODEM.send() @BrendanSimon When you state "but further writes/reads don't succeed", could you please elaborate on this? Do you know that they don't succeed because XMODEM.send() returns False, it never returns, your device isn't acting the way that you expect, or some other reason? Do you know if data is being transmitted over RS232 to your device, and what your device is responding with? As jquast mentioned, everything you can provide will help (source code, debug output, etc.). |
Re-reviewing agan, This could have been fixed by #19 if this were some kind of timing-boundry issue. I'm tempted to close this issue in the coming weeks unless we can receive more details. |
I will see if I can get some cycles this weekend to relook at this. |
As "luck" would have it, I had to do some work on this product again ;-) What I discovered is there seems to be different padding in the last block.
Is this correct and would/should it cause an issue?
|
I tried setting the Looking a closer at the data it seems that the transfer succeeds and the My code explicitly sends the What I'm guessing is happening is that with |
What I am seeing is that My app doesn't handle this variation in function, and generates an exception. So, in the end, I don't know if this is a bug or not. Probably not, just a difference that I need to cater for. |
The xmodem package on PyPi is out of date. It is at version 0.3.2, but 0.4.1 is released (or tagged) and there is another recent bug fix committed post 0.4.1. Could you please update so I can pip install the latest / most stable version.
Is there a forum to discuss issues with xmodem?
I currently have an issue where xmodem 0.3.2 (using python 2.7 on OS X Yosemite 10.10) is giving me timeout errors. The same code works ok with xmodem 0.2.3 (using python 2.6). I'm hoping a later version will fix things. What is the best way to install the latest version (given PyPi is out of date).
The text was updated successfully, but these errors were encountered: