-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Hitag #2658
base: dev
Are you sure you want to change the base?
Hitag #2658
Conversation
hey @hedger , @DrZlo13 , @nminaylov , @skotopes , |
Scheduled on next release |
Waiting for hardware to verity, moving to next release |
Sorry for delay. This PR requires some extra spaces that we planning to free in 0.87 release. |
not sure if I understand what you mean with extra spaces (extra memory space?) but no worries, just let me know when you plan to pick this up, since I've seen that meanwhile furi_hal_rfid has undergone some changes with the FuriHal bus abstraction. and I might need to rewrite some code to make it compatible again no point in continuously keeping it updated with all intermediate commits, I'd rather do a final update when it's relevant... |
I'll post update as soon as we free enough space |
We are ready to merge this PR, please merge dev and update to match new API. There were couple changes that may require change in furi_hal_rfid, please ping @DrZlo13 to get more details |
alright, on it. |
@blackvault88 feel free to ping @DrZlo13 |
thx, though not needed anymore, seems as if the thread updates which I was referring to (#2637 ) have no impact on my coding meanwhile I updated my code to comply with the bus abstraction (#2614 ). it builds and runs nicely on my FD. if successful, I'll recommit the updates |
tested and recommitted, ready for your review/approval fyi, there seems to be some other changes in the firmware that have a negative on the successrate of the hitag emulation mode. note: to check if it is related to my coding updates or to other changes in the firmware, I also rewrote and built the code to match the dev branch at time of that first deep sleep mode release and that also has the same negative impact. I would welcome a critical eye that might know what could impact the coding in my emulation routines |
@skotopes , be aware, the Hitag key data is more than 256 bytes, which is why I had to update applications/services/gui/modules/byte_input.c I see you've updated that back to a uint8_t which cannot keep track of +256 bytes... |
@blackvault88 that was merge artifact, I'll fix it. Couple questions:
|
50/64 is expected behavior: there's a minimum of 14 non-public (encrypted) pages on a HITAG 1 tag. About the one that is reading forever, are you sure it's a HITAG 1 and not a HITAG 2 or HITAG u or HITAG S?
I've tested it using a real reader, though am also experiencing issues with readers taking up to 30s (sometimes a minute) prior to succesfully reading it since after the FZ firmware updates of May June (cf my post #2658 (comment) ) |
As for emulation issues: difficult to say what exactly happened in June. There were some major changes in July, but not in June. If you can specify working commit in this branch then I can try to fix it. Couple more things that prevents us from merging this PR:
|
Ok, will look into the PVS warnings & my TODO notes
for the emulation results, I'll see if I can trace back in time to find latest version where emulation was yielding faster results
I can easily split up the functional blocks into separate files, though one of the blocks would likely be positioned better into furi_hal_rfid, though that would also increase file size there... Any advice on what would be acceptable? |
Yes, everything related to low level should be in furi_hal_rfid, also it will speedup this code. Also @DrZlo13 may have some ideas. |
worker source code refactored and moved all low level code towards furi_hal_rfid ready for your review and approval to merge @skotopes |
and some good news on emulation mode: not sure if this is due to moving low level code to furi_rfid_hal or due to other changes elsewhere in firmware, but it's a nice extra :) |
I'll take a look after we release 0.94 |
hey @skotopes , how's the review going? any input/changes required? |
@blackvault88 yes, are you on discord? can we chat a little bit? |
nope, not active there, any alternative? eg the FZ forum? |
@blackvault88 appreciate your work on Hitag! Is there any plan to continue work on this PR? |
hey @drussilla , it mainly depends on the FZ team. the source code was complete & working (as tested on local hardware). I had also restructured the coding as requested, but somehow it was never picked up. I must say though that currently I do not have the time to further restructure the coding to get it in line with any other firmware updates done since December last year... |
What's new
Verification
sampleHitag1.zip
Checklist (For Reviewer)