-
Notifications
You must be signed in to change notification settings - Fork 388
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
Automation of card cloning, and readerthreshold stored in EEPROM #118
Conversation
Signed-off-by: Michal Demin <michaldemin@gmail.com>
Signed-off-by: Michal Demin <michaldemin@gmail.com>
This command is extended original identify command. Upon execution it will do following: - change current config to "reader" mode - identify card - if multiple or no card detected -> end - change config to identified card (mifare classic 1k/4k or ultralight) - set UID of the card Signed-off-by: Michal Demin <michaldemin@gmail.com>
Signed-off-by: Michal Demin <michaldemin@gmail.com>
Nice! I was hoping someone would get to this. Can't wait to try it out! |
I have one more in the works that would clone complete content of MF ultralight card, it will be ready in few days |
Nice work! I would suggest to use a new configuration for this functionality and the CLONE command simply changes to this configuration. If any output is necessary, it could be done via the log. What do you think? |
I have traced the execution path of the string printing. There are 2 cases to consider:
Other than this, firmware does no buffering of strings at all. Also pressing the button 100 times would restart the Reader14443A application 100times. It's not creating 100 threads in the system. ( there are no threads) |
As I already said, nice work! I didn't have the time yet to find out how the USB connection parts work in detail and so I just was suspicious. Just give us some time to test the whole thing and then we'll merge it, ok? :) |
I thought you were developer of the firmware. :-) Anyway, i am not sure about the threshold setting being adjusted for each "setting". If you could commend on that part it would be nice. |
Well, I am. But when I took over the project, the USB communication already was realized and I did not have to care about it ;) About the threshold: I think that this is quite a good idea, I could imagine for example that you can have 3 settings, each configured as reader but each one with another threshold to communicate with another type of card. Right now, we are implementing an autocalibration command, with tries to communicate with every possible threshold (with a specific step size) and then finds the best threshold to communicate. Just give us a bit of time ;) |
Is it intended that the CLONE command is invisible? You have put it after the last element in CommandTable in CommandLine.c which makes it invisible to the terminal. I would suggest that the command is not invisible and I also think that it would be great to have a visible response (i.e. a LED setting which blinks if successful or so...). |
No its not intentional. I messed up my git repo, and i had to merge few things manually. I guess it just got lost :-) |
Hi, @robots any news on this feature ? I am interested to clone on the fly. Thanks |
Signed-off-by: Michal Demin <michaldemin@gmail.com>
@robots any news about it? |
what news are you expecting ? :-) |
Have you heard anything about they'll merge it? |
@geo-rg |
Hi @gtpy @robots @j-xander
|
@geo-rg I'll compile and test the functionality and give feedback. |
Some hardware requires the threshold to be altered. To do this the firmware has to be recompiled. I propose to store this setting among others in eeprom.
This pull request also adds CLONE command. This command changes current config to reader, identifies card and then changes config to the identified card type with same UID.
This functionality can also be assigned to button.
Example of usage: ledgreen = CODEC_RX, ledred setting_changed, lbutton = clone, rbutton = setting_cycle, timeout = 100 (10seconds). Press button, now you have 10seconds to approach target. Green led will identify activity from card. Done. Save card by rbutton press.