Topic: ASK Logo reader on windows

Hi,

I recently got hold of ASK Logo readers. The good news is that this reader works with current libnfc trunk on windows using the libusb windows port. The bad news is that this only works once. After restarting the process (nfc-list for example) it does not work, until the usb cable is reattached.

After some debugging i learned that the reader/driver gets into this problem state only in the following call stack:
pn53x_usb_bulk_read
pn53x_usb_send
pn53x_tranceive
pn53x_InListPassiveTarget
pn53x_initiator_select_passive_target

The command which is send here is 0x00, 0x00, 0xff, 0x04, 0xfc, 0xd4, 0x4a, 0x01, 0x00, 0xe1.
There is no error, but after this point bus->devices always returns NULL, until the usb cable is reconnected.

The strange thing is that all previous usb_send() calls work without problem.
So i would like to make sure that:
- it is not a hardware issue, specific to my reader/firmware i am having (type: RD-DE-09084-10)
- this works fine under linux

If anyone has a suggestion on how to debug this, or can help testing on his system please let me know.
I am already discussing this on the libusb mailing list.

Re: ASK Logo reader on windows

small update:
i tried this on linux with the same device and i was not able to reproduce this problem.
So it seems like a bug in the libusb windows port..

Re: ASK Logo reader on windows

Hello Glenn,
Maybe you can post (here or via pastebin) a full debug log under windows ?

I can have a look...

Note: a recent revision improve USB errors display, maybe it can help (r1030).

Romuald Conty

Re: ASK Logo reader on windows

hi,

here is a debug trace using current trunk: http://pastebin.com/uLpufS75
This shows the output of 2 runs (without reattaching the device). The first run is ok, the second crashes
I added
    if(!bus->devices)
      DBG("%s", "USB devices = NULL");

in pn53x_usb_probe() which shows the problem.

ps: libusb mailing list thread is here: http://sourceforge.net/mailarchive/foru … in32-devel

Last edited by glenn (2011-05-06 07:58:11)

Re: ASK Logo reader on windows

just to close this topic: this is fixed as of SVN r1104