{"action":"closed","issue":{"url":"https://api.github.com/repos/nfc-tools/libnfc/issues/321","labels_url":"https://api.github.com/repos/nfc-tools/libnfc/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/nfc-tools/libnfc/issues/321/comments","events_url":"https://api.github.com/repos/nfc-tools/libnfc/issues/321/events","html_url":"https://github.com/nfc-tools/libnfc/issues/321","id":113249770,"number":321,"title":"nfc-list \"No device found\" but pcscd up and working","user":{"login":"harseld","id":2310431,"avatar_url":"https://avatars.githubusercontent.com/u/2310431?v=3","gravatar_id":"","url":"https://api.github.com/users/harseld","html_url":"https://github.com/harseld","followers_url":"https://api.github.com/users/harseld/followers","following_url":"https://api.github.com/users/harseld/following{/other_user}","gists_url":"https://api.github.com/users/harseld/gists{/gist_id}","starred_url":"https://api.github.com/users/harseld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harseld/subscriptions","organizations_url":"https://api.github.com/users/harseld/orgs","repos_url":"https://api.github.com/users/harseld/repos","events_url":"https://api.github.com/users/harseld/events{/privacy}","received_events_url":"https://api.github.com/users/harseld/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-25T20:22:33Z","updated_at":"2015-10-26T10:54:07Z","closed_at":"2015-10-26T10:54:07Z","body":"Hello!\r\nI have a SDI011 card reader and I installed libnfc 1.7.1, and pcsc-tools-1.4.24. When I run pcscd in debug mode on foreground, I can see that my reader is detected. When I run  \"pcsc_scan\" (nfc-tools) and I present one card to the reader, I have the output below (output of pcscd -d -a -f) :\r\n----------------------------------------------------------------------------------------------------------------------------\r\n14244407 winscard_msg_srv.c:230:ProcessEventsServer() Common channel packet arrival\r\n00000041 winscard_msg_srv.c:242:ProcessEventsServer() ProcessCommonChannelRequest detects: 7\r\n00000040 pcscdaemon.c:111:SVCServiceRunLoop() A new context thread creation is requested: 7\r\n00000085 winscard_svc.c:301:ContextThread() Thread is started: dwClientID=7, threadContext @0x1ef4a20\r\n00000038 winscard_svc.c:319:ContextThread() Received command: CMD_VERSION from client 7\r\n00000021 winscard_svc.c:331:ContextThread() Client is protocol version 4:3\r\n00000011 winscard_svc.c:351:ContextThread() CMD_VERSION rv=0x0 for client 7\r\n00000126 winscard_svc.c:319:ContextThread() Received command: ESTABLISH_CONTEXT from client 7\r\n00000020 winscard.c:193:SCardEstablishContext() Establishing Context: 0x4722BCA3\r\n00000008 winscard_svc.c:412:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 7\r\n00000114 winscard_svc.c:319:ContextThread() Received command: CMD_GET_READERS_STATE from client 7\r\n00000156 winscard_svc.c:319:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 7\r\n00000029 winscard_svc.c:319:ContextThread() Received command: CMD_STOP_WAITING_READER_STATE_CHANGE from client 7\r\n00000017 winscard_svc.c:393:ContextThread() CMD_STOP_WAITING_READER_STATE_CHANGE rv=0x0 for client 7\r\n00000096 winscard_svc.c:319:ContextThread() Received command: CMD_GET_READERS_STATE from client 7\r\n00000153 winscard_svc.c:319:ContextThread() Received command: CMD_GET_READERS_STATE from client 7\r\n00000074 winscard_svc.c:319:ContextThread() Received command: CMD_GET_READERS_STATE from client 7\r\n00000106 winscard_svc.c:319:ContextThread() Received command: CMD_GET_READERS_STATE from client 7\r\n00059855 winscard_svc.c:319:ContextThread() Received command: CMD_GET_READERS_STATE from client 7\r\n00000071 winscard_svc.c:319:ContextThread() Received command: CMD_WAIT_READER_STATE_CHANGE from client 7\r\n54743766 winscard_svc.c:311:ContextThread() Client die: 7\r\n00000039 winscard.c:204:SCardReleaseContext() Releasing Context: 0x4722BCA3\r\n00000011 winscard_svc.c:933:MSGCleanupClient() Thread is stopping: dwClientID=7, threadContext @0x1ef4a20\r\n00000007 winscard_svc.c:939:MSGCleanupClient() Freeing SCONTEXT @0x1ef4a20\r\n------------------------------------------------------------------------------------------------------------------------------\r\nBut when I use nfc-list (with sudo or not), I get \r\n\"nfc-list uses libnfc 1.7.1\"\r\n\"No NFC device found.\"\r\nHowever, the debug output of pcscd is\r\n-------------------------------------------------------------------------------------------------------------------\r\n17903129 winscard_msg_srv.c:230:ProcessEventsServer() Common channel packet arrival\r\n00000045 winscard_msg_srv.c:242:ProcessEventsServer() ProcessCommonChannelRequest detects: 7\r\n00000011 pcscdaemon.c:111:SVCServiceRunLoop() A new context thread creation is requested: 7\r\n00000105 winscard_svc.c:301:ContextThread() Thread is started: dwClientID=7, threadContext @0x1ef4a20\r\n00000065 winscard_svc.c:319:ContextThread() Received command: CMD_VERSION from client 7\r\n00000023 winscard_svc.c:331:ContextThread() Client is protocol version 4:3\r\n00000015 winscard_svc.c:351:ContextThread() CMD_VERSION rv=0x0 for client 7\r\n00000108 winscard_svc.c:319:ContextThread() Received command: ESTABLISH_CONTEXT from client 7\r\n00000033 winscard.c:193:SCardEstablishContext() Establishing Context: 0x649E0536\r\n00000014 winscard_svc.c:412:ContextThread() ESTABLISH_CONTEXT rv=0x0 for client 7\r\n00000075 winscard_svc.c:319:ContextThread() Received command: CMD_GET_READERS_STATE from client 7\r\n00000095 winscard_svc.c:319:ContextThread() Received command: RELEASE_CONTEXT from client 7\r\n00000028 winscard.c:204:SCardReleaseContext() Releasing Context: 0x649E0536\r\n00000016 winscard_svc.c:427:ContextThread() RELEASE_CONTEXT rv=0x0 for client 7\r\n00000060 winscard_svc.c:311:ContextThread() Client die: 7\r\n00000039 winscard_svc.c:933:MSGCleanupClient() Thread is stopping: dwClientID=7, threadContext @0x1ef4a20\r\n00000024 winscard_svc.c:939:MSGCleanupClient() Freeing SCONTEXT @0x1ef4a20\r\n---------------------------------------------------------------------------------------------------------------------\r\n\r\nSo, why is nfc-list, and any other command from libnfc not working ?????"}}