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

[FL-3453] NFC Logger #4039

Draft
wants to merge 143 commits into
base: dev
Choose a base branch
from

Conversation

RebornedBrain
Copy link
Contributor

@RebornedBrain RebornedBrain commented Dec 19, 2024

What's new

  • Now NFC library can save log traces while it works. This traces can help debugging and see whats going on.
  • NFC application now has logger formatter which is done as a plugin and loaded dynamicaly
  • Several different modes for formatting can be set.

Note

Now all protocols saves their history as binary data, but they need protocol specific formatters to be added, in order to be
displayed in human readable format. Below there is a list of protocols which are now formatted.

Supported protocols:

  • iso14443_3a
  • iso14443_3b
  • iso14443_4a
  • iso14443_4b
  • MfUltralight
  • Felica
  • MfClassic
  • Desfire
  • MfPlus
  • iso15693_3
  • Slix
  • St25tb

ToDo:

  • Add formatters for all other protocols in both poller and listener modes
  • Add MfClassic protocol
  • Make formatting more simplified and informative (should be done for each protocol separately)
  • Add logger config buttons to Debug scene in NFC app

Verification

By default logger is disabled and doesn't impact NFC flow.

  • Run NFC app and go to Debug menu
  • Press "Enable Logger" button, it will switch to "Disable Logger" now logger is active.

Poller test:

  • Try to read any of supported protocols Ultralight for example
  • Once done, connect Flipper to PC and go to ext/nfc/log
  • Download txt file with latest datetime in format LOG-yyyymmdd-hhmmss.txt, you will see logs

Listener test:

  • Try to emulate any of supported protocols Ultralight for example
  • Try to read your emulation
  • Stop emulation
  • Connect Flipper to PC and go to ext/nfc/log
  • Download txt file with latest datetime in format LOG-yyyymmdd-hhmmss.txt, you will see logs

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

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

Successfully merging this pull request may close these issues.

1 participant