llcp on-connect seem to fail on Win7
Hi,
I wonder if there is a bug in nfcpy on Windows7. I tried to run the below simple program to test a PN533 USB adapter with an Android phone. Everything works on a Raspberry Pi but when run on Windows, on-start is executed but on-connected seems to silently fail, i.a. the function terminates after about 1 sec without the smartphone having been tapped. If I try to rerun the entire program, the following error occurs which can only be avoided by unplugging and plugging the PN533 adapter back in:
clf = nfc.Contactless
File "C:\dev\
raise IOError(
IOError: [Errno 19] No such device
Note, reading mifare cards works repetitively: clf.connect(
System configuration: Win7, nfcpy-0.10.2, pyusb-1.0.0a2, python27, PN533 USB adapter (libusb-win32 driver)
import nfc
def started(llc):
print llc;return True
def connected(llc):
print llc;return True
clf = nfc.Contactless
clf.connect(
clf.connect(
Output on Win7:
LLC: Local(MIU=128, LTO=500ms) Remote(MIU=None, LTO=Nonems)
Output on Raspberry Pi:
LLC: Local(MIU=128, LTO=500ms) Remote(MIU=None, LTO=Nonems)
LLC: Local(MIU=128, LTO=500ms) Remote(MIU=128, LTO=1500ms)
Any help would be much appreciated!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- nfcpy Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Stephen Tiedemann
- Solved:
- Last query:
- Last reply: