Skip to content
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

Can't download via XModem on OSX using screen and minicom #23

Open
gogobd opened this issue Oct 10, 2016 · 4 comments
Open

Can't download via XModem on OSX using screen and minicom #23

gogobd opened this issue Oct 10, 2016 · 4 comments

Comments

@gogobd
Copy link

gogobd commented Oct 10, 2016

Hi! I was trying to test the DOWNLOAD command and my cameleon waits for an XMODEM file transfer to start. I was using screen and "^a:exec !! lrx file" but it said that headers were garbled, then I tried minicom and presses ESC-Z and then R for receive and the XModem and a filename. It didn't seem to work.
Also I don't understand the documentation here very well, does that command send the whole memory that's been read from a card into a file? Can that same be done _on_card* and be stored internally? How? I'd like to clone a whole card.

@gogobd
Copy link
Author

gogobd commented Oct 11, 2016

110:WAITING FOR XMODEM

rx: ready to receive file
Retry 1: Got 061 sector header
Retry 0: Sector number garbled
Retry 1: Sync Error

rx: file removed.

Transfer incomplete

That's what I see in screen wirh rx

@david-oswald
Copy link
Collaborator

Not sure about this specific problem - can anyone replicate this problem? Note that there is a timeout within which the xmodem rx has to start ie you have to be relatively quick.

DOWNLOAD will receive the binary representation (an 8k slot in the FRAM) for the selected setting. This can later be uploaded (UPLOAD) to restore the card dump. For MFClassic and MFUltralight, the binary format is an mfd file as generated by other tools like libnfc.

@david-oswald david-oswald changed the title Can't download XModem on OSX Can't download via XModem on OSX using screen and minicom Oct 11, 2016
@geo-rg
Copy link
Collaborator

geo-rg commented Apr 5, 2017

@gogobd Did you find any solution for your problem? Maybe your problem does not occur anymore with the recent firmware versions?

@KubaO
Copy link

KubaO commented Mar 27, 2019

This problem seems endemic to macOS. I got it trying to download configuration from an HP 5406zl switch, using screen /dev/tty.usbserial 115200 and then ^a : exec !! rx /users/foo/file.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants