Topic: Error libusb0-dll:err [_usb_reap_async] with reader SCL3711

When I try to use one of the examples (e.g. nfc-dep-target) I get this error:

NFC device: SCM Micro / SCL3711-NFC&RW opened
NFC device will now act as: D.E.P. (undefined baud ratepassive mode) target:
       NFCID3: 12  34  56  78  9a  bc  de  ff  00  00
           BS: 00
           BR: 00
           TO: 00
           PP: 01
General Bytes: 12  34  56  78
Waiting for initiator request...
error   libnfc.driver.pn53x_usb Unable to read from USB (libusb0-dll:err [_usb_reap_async] reaping request failed, win error:
)
nfc_target_init: Buffer Overflow

libnfc v1.7.1
libusb v1.2.6.0
CMake v3.5.1
TDM-GCC MinGW v5.1.0-2
PCRE v7.0
Reader: SCL3711
OS: Windows 7 SP1 64 Bit

I also tried the libusb v1.2.5.0. It produces the same error.


Can somebody help me to solve this problem?

Re: Error libusb0-dll:err [_usb_reap_async] with reader SCL3711

libnfc-1.7.1$ nfc-dep-target
error    libnfc.driver.pn532_uart    Invalid serial port: /dev/ttyACM0
Unable to open NFC device.

sudo nfc-dep-target
NFC device: pn532_uart:/dev/ttyACM0 opened
NFC device will now act as: D.E.P. (undefined baud ratepassive mode) target:
       NFCID3: 12  34  56  78  9a  bc  de  ff  00  00 
           BS: 00
           BR: 00
           TO: 00
           PP: 01
General Bytes: 12  34  56  78 
Waiting for initiator request...

place nfc phone
Initiator request received. Waiting for data...
nfc_target_receive_bytes: Target Released

did you try sudo?

Re: Error libusb0-dll:err [_usb_reap_async] with reader SCL3711

I’m using Windows. So I tried it with administrator rights. But it’s the same.

I found out that the example nfc-poll works.


Here is the debug output for the example nfc-dep-target.

PS D:\libnfc\libnfc-build\examples> .\nfc-dep-target.exe
info    libnfc.config   Unable to open file: C:/Program Files (x86)/libnfc/config/libnfc.conf
debug   libnfc.config   Unable to open directory: C:/Program Files (x86)/libnfc/config/devices.d
unknown libnfc.general  log_level is set to 3
debug   libnfc.general  allow_autoscan is set to true
debug   libnfc.general  allow_intrusive_scan is set to false
debug   libnfc.general  0 device(s) defined by user
debug   libnfc.driver.pn53x_usb device found: Bus bus-0 Device \\.\libusb0-0001--0x04e6-0x5591
debug   libnfc.general  1 device(s) found using pn53x_usb driver
debug   libnfc.driver.pn53x_usb 3 element(s) have been decoded from "pn53x_usb:bus-0:\\.\libusb0-0001--0x04e6-0x5591"
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       GetFirmwareVersion
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 02 fe d4 02 2a 00
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 06 fa d5 03 33 02 07 07 e5 00
debug   libnfc.chip.pn53x       GetFirmwareVersion
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 02 fe d4 02 2a 00
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 06 fa d5 03 33 02 07 07 e5 00
debug   libnfc.chip.pn53x       SetParameters
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 03 fd d4 12 14 06 00
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 02 fe d5 13 18 00
debug   libnfc.general  "SCM Micro / SCL3711-NFC&RW" (pn53x_usb:bus-0:\\.\libusb0-0001--0x04e6-0x5591) has been claimed.

NFC device: SCM Micro / SCL3711-NFC&RW opened
NFC device will now act as: D.E.P. (undefined baud ratepassive mode) target:
       NFCID3: 12  34  56  78  9a  bc  de  ff  00  00
           BS: 00
           BR: 00
           TO: 00
           PP: 01
General Bytes: 12  34  56  78
Waiting for initiator request...
debug   libnfc.chip.pn53x       ReadRegister
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 0c f4 d4 06 63 02 63 03 63 0d 63 38 63 3d b0 00
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 08 f8 d5 07 00 00 00 00 00 00 24 00
debug   libnfc.chip.pn53x       PN53X_REG_CIU_TxMode (Defines the transmission data rate and framing during transmission
)
debug   libnfc.chip.pn53x       PN53X_REG_CIU_RxMode (Defines the transmission data rate and framing during receiving)
debug   libnfc.chip.pn53x       WriteRegister
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 08 f8 d4 08 63 02 80 63 03 80 59 00
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 03 fd d5 09 00 22 00
debug   libnfc.chip.pn53x       RFConfiguration
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 04 fc d4 32 01 00 f9 00
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 02 fe d5 33 f8 00
debug   libnfc.chip.pn53x       PN53X_SFR_P3 (Port 3 value)
debug   libnfc.chip.pn53x       ReadRegister
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 04 fc d4 06 ff b0 77 00
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 04 fc d5 07 00 3e e6 00
debug   libnfc.chip.pn53x       ReadRegister
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 08 f8 d4 06 63 05 63 38 63 3d 83 00
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 06 fa d5 07 00 00 00 00 24 00
debug   libnfc.chip.pn53x       PN53X_REG_CIU_TxAuto (Controls the settings of the antenna driver)
debug   libnfc.chip.pn53x       WriteRegister
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 05 fb d4 08 63 05 04 b8 00
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 03 fd d5 09 00 22 00
debug   libnfc.chip.pn53x       TgInitAsTarget
debug   libnfc.chip.pn53x       No timeout
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 2b d5 d4 8c 02 08 00 12 34 56 40 01 fe 12 34 56 78 90 12 c0 c1 c2 c3 c4 c5
c6 c7 0f ab 12 34 56 78 9a bc de ff 00 00 04 12 34 56 78 00 d0 00
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       PN53x ACKed
error   libnfc.driver.pn53x_usb Unable to read from USB (libusb0-dll:err [_usb_reap_async] reaping request failed, win e
rror: Ein an das System angeschlossenes Gerõt funktioniert nicht.

)
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 00 ff 00
nfc_target_init: Buffer Overflow
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 00 ff 00
debug   libnfc.chip.pn53x       InRelease
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 03 fd d4 52 00 da 00
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 00 ff 00