dotnfc / libnfc

Automatically exported from code.google.com/p/libnfc
GNU Lesser General Public License v3.0
1 stars 0 forks source link

error libnfc.chip.pn53x Unexpected PN53x reply! #278

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  ./examples/nfc-poll 
2.  ./examples/nfc-poll 
What is the expected output? What do you see instead?
#  the expected output
NFC reader: Sony / ? opened
NFC device will poll during 30000 ms (20 pollings of 300 ms for 5 modulations)
FeliCa (212 kbps) target:
        ID (NFCID2): 01  27  00  5c  a4  cf  ac  97  
    Parameter (PAD): 00  f0  00  00  02  06  03  00  
   System Code (SC): 88  b4  
nfc_initiator_target_is_present: Target Released
Waiting for card removing...done.

# what i see
error   libnfc.chip.pn53x   Unexpected PN53x reply!
error   libnfc.driver.pn53x_usb Application level error detected
lt-nfc-poll: ERROR: Unable to open NFC device.

What version of the product are you using? On what operating system?
#libnfc version:
uses libnfc libnfc-1.7.1-11-gbb9babb
#operating system:
LINUX 3.11.0-14-generic #21-Ubuntu SMP Tue Nov 12 17:04:55 UTC 2013 x86_64 
x86_64 x86_64 GNU/Linux

Please provide any additional information below.
i have problems when i run libnfc-poll a second time,i try add loop and read 
nfc card several times i have not problems but when i close programe and try 
run it a second time i have error
############for more information
########################################################################
########################################################################
######################################### when no problem
uses libnfc libnfc-1.7.1-11-gbb9babb
info    libnfc.config   Unable to open file: /usr/local/etc/nfc/libnfc.conf
debug   libnfc.config   Unable to open directory: /usr/local/etc/nfc/devices.d
debug   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 002 Device 010
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:002:010"
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 01 30 07 bd 00 
debug   libnfc.driver.pn53x_usb SONY RC-S360 initialization.
debug   libnfc.chip.pn53x   AlparCommandForTDA
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 03 fd d4 18 01 13 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 19 12 00 
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 01 30 07 bd 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  "Sony / ?" (pn53x_usb:002:010) has been claimed.
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 07 f9 d5 07 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 04 fc d5 09 00 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   RFConfiguration
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 04 fc d4 32 01 01 f8 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   RFConfiguration
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 06 fa d4 32 05 ff ff ff f8 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 
NFC reader: Sony / ? opened
NFC device will poll during 30000 ms (20 pollings of 300 ms for 5 modulations)
debug   libnfc.chip.pn53x   ReadRegister
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 0e f2 d4 06 63 02 63 03 63 05 63 38 
63 3c 63 3d 19 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 80 80 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   PN53X_REG_CIU_Control (Contains miscellaneous control 
bits)
debug   libnfc.chip.pn53x   WriteRegister
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 08 f8 d4 08 63 05 40 63 3c 10 cd 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 09 00 00 22 00 
debug   libnfc.chip.pn53x   RFConfiguration
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 06 fa d4 32 05 ff ff ff f8 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   InListPassiveTarget
debug   libnfc.chip.pn53x   Timeout value: 300
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 04 fc d4 4a 01 00 e1 00 
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00 
debug   libnfc.chip.pn53x   PN53x ACKed
debug   libnfc.chip.pn53x   InListPassiveTarget
debug   libnfc.chip.pn53x   Timeout value: 300
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 05 fb d4 4a 01 03 00 de 00 
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00 
debug   libnfc.chip.pn53x   PN53x ACKed
debug   libnfc.chip.pn53x   InListPassiveTarget
debug   libnfc.chip.pn53x   Timeout value: 300
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 09 f7 d4 4a 01 01 00 ff ff 01 00 e1 
00 
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00 
debug   libnfc.chip.pn53x   PN53x ACKed
debug   libnfc.chip.pn53x   InListPassiveTarget
debug   libnfc.chip.pn53x   Timeout value: 300
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 09 f7 d4 4a 01 02 00 ff ff 01 00 e0 
00 
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00 
debug   libnfc.chip.pn53x   PN53x ACKed
debug   libnfc.chip.pn53x   InListPassiveTarget
debug   libnfc.chip.pn53x   Timeout value: 300
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 04 fc d4 4a 01 04 dd 00 
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00 
debug   libnfc.chip.pn53x   PN53x ACKed
debug   libnfc.chip.pn53x   InListPassiveTarget
debug   libnfc.chip.pn53x   Timeout value: 300
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 04 fc d4 4a 01 00 e1 00 
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00 
debug   libnfc.chip.pn53x   PN53x ACKed
debug   libnfc.chip.pn53x   InListPassiveTarget
debug   libnfc.chip.pn53x   Timeout value: 300
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 05 fb d4 4a 01 03 00 de 00 
debug   libnfc.driver.pn53x_usb RX: 00 00 ff 00 ff 00 
debug   libnfc.chip.pn53x   PN53x ACKed
debug   libnfc.chip.pn53x   InListPassiveTarget
debug   libnfc.chip.pn53x   Timeout value: 300
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 09 f7 d4 4a 01 01 00 ff ff 01 00 e1 
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 18 e8 d5 4b 01 01 14 01 01 27 00 5c 
a4 cf ac 97 00 f0 00 00 02 06 03 00 88 b4 58 00 
FeliCa (212 kbps) target:
        ID (NFCID2): 01  27  00  5c  a4  cf  ac  97  
    Parameter (PAD): 00  f0  00  00  02  06  03  00  
   System Code (SC): 88  b4  
debug   libnfc.chip.pn53x   target_is_present(): Ping Felica
debug   libnfc.chip.pn53x   InDataExchange
debug   libnfc.chip.pn53x   Timeout value: 300
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 0d f3 d4 40 01 0a 04 01 27 00 5c a4 
cf ac 97 a3 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 01 ff 7f 81 00 
error   libnfc.driver.pn53x_usb Application level error detected
debug   libnfc.chip.pn53x   InDataExchange
debug   libnfc.chip.pn53x   Timeout value: 300
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 0d f3 d4 40 01 0a 04 01 27 00 5c a4 
cf ac 97 a3 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 01 ff 7f 81 00 
error   libnfc.driver.pn53x_usb Application level error detected
debug   libnfc.chip.pn53x   InDataExchange
debug   libnfc.chip.pn53x   Timeout value: 300
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 0d f3 d4 40 01 0a 04 01 27 00 5c a4 
cf ac 97 a3 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 01 ff 7f 81 00 
error   libnfc.driver.pn53x_usb Application level error detected
nfc_initiator_target_is_present: Target Released
Waiting for card removing...done.
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 00 ff 00 
debug   libnfc.chip.pn53x   GetGeneralStatus
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 02 fe d4 04 28 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 0b f5 d5 05 00 00 01 01 01 01 10 00 
06 0c 00 
debug   libnfc.chip.pn53x   InRelease
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 04 fc d4 52 01 01 d8 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 53 01 00 d7 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 
################################################################
################################################################
################################################################
#####################################################when error
uses libnfc libnfc-1.7.1-11-gbb9babb
info    libnfc.config   Unable to open file: /usr/local/etc/nfc/libnfc.conf
debug   libnfc.config   Unable to open directory: /usr/local/etc/nfc/devices.d
debug   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 002 Device 010
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:002:010"
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 06 fa d5 03 33 01 30 07 bd 00 
error   libnfc.chip.pn53x   Unexpected PN53x reply!
debug   libnfc.driver.pn53x_usb TX: 00 00 ff ff 00 00 
debug   libnfc.driver.pn53x_usb SONY RC-S360 initialization.
debug   libnfc.chip.pn53x   AlparCommandForTDA
debug   libnfc.driver.pn53x_usb TX: 00 00 ff 03 fd d4 18 01 13 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 19 12 00 
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 01 30 07 bd 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 01 ff 7f 81 00 
error   libnfc.driver.pn53x_usb Application level error detected
debug   libnfc.general  Unable to open "pn53x_usb:002:010".
lt-nfc-poll: ERROR: Unable to open NFC device.

Original issue reported on code.google.com by Souadji....@gmail.com on 12 May 2014 at 3:14