Repository navigation
NFC over neard - #17
Merged
Merged
Conversation
colemancda
force-pushed
the
feature/nfc
branch
from
November 22, 2026 13:35
2b2b456 to
24c3726
Compare
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.
Implements the NFC contracts on Linux over neard (
org.neardon the system bus): the reader role, reading and writing NDEF.Plan.mdgains §13 NFC, and the later sections are renumbered.Sessions.
beginpolls the first adapter that's on (StartPollLoop("Initiator")).org.neard.Tag.PropertyChanged("Records")signal for that, and it can arrive before the tag'sInterfacesAdded. A tag with no NDEF gets no such signal, so it's reported after a second without one.restartPolling, and a tag of a kind not asked for, poll again once the field is empty.Tags.
Records. A read after a write waits for neard to read the tag again.writeLockandtransceivefail withunsupported.queryNDEFStatusreports a capacity of 0, because neard doesn't say how much a tag holds.Not in this PR: raw commands. The kernel has
AF_NFCraw sockets, but neard holds the tag it found.Testing.
nfc.This PR is independent of #16 (Motion), but both touch
Plan.md, the README,Package.swiftand the module lists. Whichever merges second needs a rebase, and Plan.md's sections renumbered.