Skip to content

cyberpunkunicorn-os 0.1.7: reset the field before selecting a card again - #21

Merged
hellofrequencylab merged 1 commit into
mainfrom
claude/project-thread-lhkr1c
Oct 21, 2026
Merged

hellofrequencylab merged 1 commit into
mainfrom
claude/project-thread-lhkr1c

Conversation

@hellofrequencylab

Copy link
Copy Markdown
Owner

Daniel's 0.1.5 logs at 18:17Z and 18:53Z show the same pattern. frequency.write_tag tapped and found the card. Then writeCard()'s own selectCard() a moment later found nothing, and the board answered write_failed: No card.

A card that has just answered stays ACTIVE and ignores a new select. So the second select, made while the card was still awake from the first, came back empty.

Change

  • apps/frequency/card.cpp: adds selectAgain(). It sends InRelease (0x52) to drop the card, turns the RF field off for 10 ms and on again, then selects. The card powers up IDLE and answers.
  • Every re-select now uses it: before the write, between write tries, the verify, the lock, and a read that dropped. The first select of a tap is unchanged.
  • build.sh: OS_VERSION is now 0.1.7.

Verification

  • CI build.
  • Not yet run on hardware. The test is Daniel writing a placard after updating.

Generated by Claude Code

Daniel's 0.1.5 logs (18:17 and 18:53): the tap found the card, then the
write's own select a moment later found nothing and answered 'No card'. A
card that just answered stays ACTIVE and ignores a new select. Every
re-select (before the write, between write tries, the verify, the lock, a
read that dropped) now goes through selectAgain(): InRelease, RF field off
10 ms and on again, then select, so the card powers up IDLE and answers.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015Aw32AU4vVqCSEoNA5aP3U
@hellofrequencylab
hellofrequencylab merged commit 773c925 into main Oct 21, 2026
2 checks passed
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.

2 participants