{"id":27245868,"url":"https://github.com/stargate01/ifdnfc-nci","last_synced_at":"2025-04-10T21:29:41.864Z","repository":{"id":248500979,"uuid":"827534554","full_name":"StarGate01/ifdnfc-nci","owner":"StarGate01","description":"PC/SC IFD Handler based on linux_libnfc-nci","archived":false,"fork":false,"pushed_at":"2024-08-05T11:08:02.000Z","size":39,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T21:34:08.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StarGate01.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-11T20:57:11.000Z","updated_at":"2025-03-15T14:54:44.000Z","dependencies_parsed_at":"2024-07-24T18:49:08.005Z","dependency_job_id":"0a836728-fe70-4dde-8221-c9a9de5af2d5","html_url":"https://github.com/StarGate01/ifdnfc-nci","commit_stats":null,"previous_names":["stargate01/ifdnfc-nci"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2Fifdnfc-nci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2Fifdnfc-nci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2Fifdnfc-nci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarGate01%2Fifdnfc-nci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StarGate01","download_url":"https://codeload.github.com/StarGate01/ifdnfc-nci/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248300990,"owners_count":21080810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-10T21:29:41.254Z","updated_at":"2025-04-10T21:29:41.845Z","avatar_url":"https://github.com/StarGate01.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ifdnfc-nci\n\nPC/SC IFD Handler for PCSClite based on `linux_libnfc-nci` and `ifdnfc` (https://github.com/nfc-tools/ifdnfc).\n\nThis stack targets the `NXP PN54x chipset`. Extended APDUs are (mostly) supported, extensions for the German eID card protocol are implemented as well.\n\n## Requirements\n\nGet and install the (forked) libnfc-nci library from https://github.com/StarGate01/linux_libnfc-nci/ , which works with the kernel driver from https://github.com/jr64/nxp-pn5xx .\n\nOther requirements are `gcc`, `cmake`, `pkg-config`, `pcsclite` and `make` .\n\n## Building\n\n```\nmkdir -p build \u0026\u0026 cd build\ncmake -DCMAKE_INSTALL_PREFIX=$(pwd)/../install ..\nmake\n```\n\n## Installing\n\nPlace the `./install/lib/libifdnfc-nci.so` file somewhere you like, e.g. `/usr/lib/pcsc/drivers/serial/libifdnfc-nci.so`\n\nAppend to `/etc/reader.conf` (or wherever your pcsc serial reader configuration is):\n\n```\nFRIENDLYNAME \"NFC NCI\"\nLIBPATH      /usr/lib/pcsc/drivers/serial/libifdnfc-nci.so\nCHANNELID    0\n```\n\n### Hibernation issue\n\nAfter hibernation / sleep wakeup, the NFC chip needs to re-initialized. An easy way to do this is to restart the PCSC daemon whenever the system wakes up (using a systemd oneshot service):\n\n```\n[Unit]\nAfter=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target\nDescription=Wakeup PCSC after sleep\n\n[Service]\nExecStart=systemctl restart pcscd.service\nTimeoutStopSec=10\nType=oneshot\n\n[Install]\nWantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstargate01%2Fifdnfc-nci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstargate01%2Fifdnfc-nci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstargate01%2Fifdnfc-nci/lists"}