How to run tagtool.py when NFC reader is connected to COM 5 on Windows?

Asked by Aiyee

I recently bought the itead NFC shield which uses PN532.
http://imall.iteadstudio.com/im130625002.html

I used nfcpy-0.9.2 and not nfcpy-dev because I could not get nfcpy-dev working properly. My NFC shield is connected to a Windows laptop at Serial port COM 5.

Inside nfcpy-0.9.2, I ran the tagtool.py. This is how I run it;

> python tagtool.py --device com:5:pn53x

The message I got was;

[nfc.clf] searching for reader with path 'com:5:pn532'
[nfc.clf] no reader found at 'com:5:pn532'
[main] no contactless reader found

Did I use the command correctly? What should be the right way to talk to a NFC shield connected to COM 5?

Question information

Language:
English Edit question
Status:
Answered
For:
nfcpy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Stephen Tiedemann (stephen-tiedemann) said :
#1

There may be a numbering mismatch. In "tty:<port>:<driver>" if port is an integer it gets interpreted as an index to the list of COM ports. The index starts at zero. If port can not be converted to an integer it is taken literally to serial.open().

Try 'com:4:pn532' and 'com:COM5:pn532', both should be equivalent.

Can you help with this problem?

Provide an answer of your own, or ask Aiyee for more information if necessary.

To post a message you must log in.