Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CCID: add interrupt support#4198

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
kidbomb wants to merge7 commits intoflipperdevices:dev
base:dev
Choose a base branch
Loading
fromkidbomb:ccid-interrupt-dev

Conversation

@kidbomb
Copy link
Contributor

@kidbombkidbomb commentedApr 19, 2025
edited
Loading

What's new

Allow emulated smartcard to be inserted or removed by calling the following functions:

  • furi_hal_usb_ccid_insert_smartcard
  • furi_hal_usb_ccid_remove_smartcard

These functions will use the interrrupt endpoint to send a notify change message

Verification

  • On linux, stop pcscd (sudo systemctl stop pcscd.socket)
  • Open pcscd in daemon mode (sudo pcscd -a -f -d)
  • Open ccid_test application
  • Click in Remove Smartcard
  • Click in Insert Smartard

You should see the following messages:

02404430 [136383893079616] eventhandler.c:358:EHStatusHandlerThread() **Card Removed From Generic USB Smart Card Reader 00 00**02805751 [136383893079616] ifdhandler.c:1216:IFDHPowerICC() action: PowerUp, usb:076b/3a21:libudev:0:/dev/bus/usb/003/024 (lun: 0)00000417 [136383893079616] eventhandler.c:406:EHStatusHandlerThread() powerState: POWER_STATE_POWERED00000018 [136383893079616] eventhandler.c:423:EHStatusHandlerThread() **Card inserted into Generic USB Smart Card Reader 00 00**00000010 [136383893079616] Card ATR: 3B 00 00400853 [136383893079616] ifdhandler.c:1216:IFDHPowerICC() action: PowerDown, usb:076b/3a21:libudev:0:/dev/bus/usb/003/024 (lun: 0)00001381 [136383893079616] eventhandler.c:482:EHStatusHandlerThread() powerState: POWER_STATE_UNPOWERED

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

Allow smartcard to be inserted or removed by calling the following functions: - furi_hal_usb_ccid_insert_smartcard - furi_hal_usb_ccid_remove_smartcardThese functions will use the interrrupt endpoint to send a notify change message
@hedgerhedger added the USBBadUSB + physical USB interface labelApr 26, 2025
@kidbomb
Copy link
ContributorAuthor

@skotopes - Would you mind taking a look into this review?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@DrZlo13DrZlo13Awaiting requested review from DrZlo13DrZlo13 is a code owner

@hedgerhedgerAwaiting requested review from hedgerhedger is a code owner

@gsurkovgsurkovAwaiting requested review from gsurkovgsurkov is a code owner

@nminaylovnminaylovAwaiting requested review from nminaylovnminaylov is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

USBBadUSB + physical USB interface

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@kidbomb@hedger

[8]ページ先頭

©2009-2025 Movatter.jp