Repository navigation
flipper: Frequency app for the CyberUnicorn console - #17
Draft
hellofrequencylab wants to merge 1 commit into
Draft
hellofrequencylab wants to merge 1 commit into
hellofrequencylab wants to merge 1 commit into
Conversation
…fc builder apps/frequency opens a second USB serial port and speaks the console's line protocol (system.status, system.caps, hat.probe, frequency.write_tag, frequency.read_tag), writing the NDEF check-in link to an NTAG213/215/216 and reading it back. tools/placard_nfc.py builds a .nfc file for the stock NFC app's Write, for use without the app. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Daniel
Project
flipper/What changed
Before: writing a check-in placard needed the CyberUnicorn with its PN532 reader. The Flipper Zero could not take part.
After: open the Frequency app on the Flipper (Apps → NFC). It adds a second USB serial port that speaks the console's protocol, so the console can write and read NTAG213/215/216 placards and member cards through the Flipper's NFC.
apps/frequencyswitches USB to dual CDC the same way the stock USB-UART Bridge does, and leaves the CLI on the first port. It answerssystem.status,system.caps,hat.probe(reportspn532: true, because the console gates its tag tools on that),frequency.write_tagandfrequency.read_tag. Anything else getsunknown_command.{uid, type, ntag, capacity, uri, written}, and failures use the error codes the console already maps:timeout"No card",write_failed,card_error.tools/placard_nfc.pybuilds a.nfcfile for the stock NFC app's Write, for writing without the app. The format is grounded in flipperzero-firmware's loader.CLAUDE.mdrecords the device firmware (Momentum mntm-012, API 87.1). It also notes thatufbt launchreports a read error when the app re-enumerates USB, and that this is expected.Verification
ufbtbuilds clean forTarget: 7, API: 87.1, which matches the device.ufbt lintpasses.ufbt launch, then talked to it over the new port/dev/cu.usbmodemflip_I5had0ha3:system.status,system.capsandhat.probeanswered.wifi.scangotunknown_command, and anftp://URL gotbad_args.read_tagandwrite_tagwith no tag emittedfrequency.waiting_for_tag, then timed out with "No card".🤖 Generated with Claude Code