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

Hitag2 issues in current repo - i2c related? #798

Closed
jslawek opened this issue Mar 9, 2019 · 5 comments
Closed

Hitag2 issues in current repo - i2c related? #798

jslawek opened this issue Mar 9, 2019 · 5 comments

Comments

@jslawek
Copy link

jslawek commented Mar 9, 2019

Hi,

hitag2 does not work for me in current repo version (tried RRG too btw).
"lf hitag reader 26" does not recognize tag id (no result in client), reading blocks or simulating also does not work.
I have tried several commits back, and it works for me in 968ad67 but does not work in
5a28b51 (I could not compile these few in between to check).
I have further pinpointed the problem to @pwpiwi commit 8d7d7b6, more specifically " "update i2c.c from RfidResearchGroup repository".
After switching i2c.c in 5a28b51 to the previous one from 968ad67, hitag commands (lf hitag) work for me again.

I confirmed this on Elechouse RDV2 as well as another AT91SAMS512 clone. Interestingly, the RDV4 behaves in a different way however. The exact same fw that recognizes hitag2 UID for RDV2, flashed on RDV4 ends with error:

proxmark3> lf hitag reader 26
#db# Uknown frame length: 2

Also, even when the lf hitag commands work, the "lf search" does not recognize the tag anyway. And after this "lf search" with empty result - "lf hitag" commands do not work any more, until the Proxmark device re-plug. But I think this may be another, unrelated issue.

pwpiwi added a commit to pwpiwi/proxmark3 that referenced this issue Mar 13, 2019
* ... and whitespace formating
@pwpiwi
Copy link
Contributor

pwpiwi commented Mar 13, 2019

I don't have a Hitag card at hand but I think that @iceman1001 is right. I have added TC0 initialization to Hitag (and HitagS) functions in PR #800. Please give it a try.

@iceman1001
Copy link
Member

yup yup, those TC0 inits made the lf hitag reader 26 come alive again. It can identify my card.

pm3 --> lf hita reader 26
#db# Configured for hitag2 reader
Valid Hitag2 tag found - UID: ac20a810
pm3 --> lf hita list
recorded activity (TraceLen = 512 bytes):
 ETU     :nbits: who bytes
---------+-----+----+-----------
 +      0:    5:     c0
 +    203:   32: TAG ac! 20  a8  10

@jslawek
Copy link
Author

jslawek commented Mar 13, 2019

Yes, I confirm it works! Not only "lf hitag reader 26" but also reading the whole card and simulating it to the reader, and moreover - "lf search" also recognizes the tag again!
I am still having difficulties on RDV4 though, but I guess it is unrelated. I begin to suspect it may be somehow related to signal quality (clipping?). It gets various length of data (or no data at all), depending how far I place the tag from antenna:

proxmark3> lf hitag reader 26
#db# Uknown frame length: 25          
proxmark3> lf hitag reader 26
#db# Uknown frame length: 31          
proxmark3> lf hitag reader 26
#db# Uknown frame length: 25          
proxmark3> lf hitag reader 26
#db# Uknown frame length: 1          
proxmark3> lf hitag reader 26
proxmark3> lf hitag reader 26

pwpiwi added a commit that referenced this issue Mar 13, 2019
* ... and whitespace formating
@pwpiwi
Copy link
Contributor

pwpiwi commented Mar 13, 2019

merged.

@jslawek
Copy link
Author

jslawek commented Mar 13, 2019

Thanks for such quick resolution! Closing as it works for most Proxmark hardware devices, and the RDV4 signal quality issues (not strictly related to this) moved to RRG repo: RfidResearchGroup/proxmark3#124

@jslawek jslawek closed this as completed Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants