scl3711 - time out error with android HCE
Hello
First of all I truly appreciate the work. Thanks for the effort.
Our solution. We are trying to send some data from the android HCE mimicking type 4 tag to the nfc reader SCL3711(using nfcpy).
The whole solution works perfectly when the android phone is locked but when the phone is unlocked , time out error is thrown. I have tried changing the time out based on forum search to 16 which is 3 seconds for non_dep_to in pn53x.py but the results are very inconsistent. Sometimes it works and most of the times, it does not. Can you please help me ?
Following are the logs for the locked and unlocked phone in the python library
Locked phone(works)
polling for NFC-A technology
InListPassiveTarget command with timeout 1000 ms
>>> 0000ff04fcd44a0
<<< 0000ff00ff00
<<< 0000ff11efd54b0
found NFC-A target @ 106 kbps
found target TTA br=106 cfg=040020 uid=08f6a0c9 ats=0578807002
init TTA br=106 cfg=040020 uid=08f6a0c9 ats=0578807002
select file
>>> 00a4040007d2760
RFConfiguration command with timeout 100 ms
>>> 0000ff06fad4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
RFConfiguration command with timeout 100 ms
>>> 0000ff04fcd4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
InDataExchange command with timeout 2550 ms
>>> 0000ff10f0d4400
<<< 0000ff00ff00
<<< 0000ff05fbd5410
<<< 9000
select file
>>> 00a4000002e103 1.039s
RFConfiguration command with timeout 100 ms
>>> 0000ff06fad4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
RFConfiguration command with timeout 100 ms
>>> 0000ff04fcd4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
InDataExchange command with timeout 2550 ms
>>> 0000ff0af6d4400
<<< 0000ff00ff00
<<< 0000ff05fbd5410
<<< 9000
read binary 0 to 15
>>> 00b000000f 1.039s
RFConfiguration command with timeout 100 ms
>>> 0000ff06fad4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
RFConfiguration command with timeout 100 ms
>>> 0000ff04fcd4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
InDataExchange command with timeout 2550 ms
>>> 0000ff08f8d4400
<<< 0000ff00ff00
<<< 0000ff14ecd5410
<<< 000f20003b00340
CC = 000f20003b00340
Capabilities: Ver=2.0, MLe=59, MLc=52
select file
>>> 00a4000c02e104 1.039s
RFConfiguration command with timeout 100 ms
>>> 0000ff06fad4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
RFConfiguration command with timeout 100 ms
>>> 0000ff04fcd4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
InDataExchange command with timeout 2550 ms
>>> 0000ff0af6d4400
<<< 0000ff00ff00
<<< 0000ff05fbd5410
<<< 9000
read binary 0 to 59
>>> 00b000003b 1.039s
RFConfiguration command with timeout 100 ms
>>> 0000ff06fad4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
RFConfiguration command with timeout 100 ms
>>> 0000ff04fcd4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
InDataExchange command with timeout 2550 ms
>>> 0000ff08f8d4400
<<< 0000ff00ff00
<<< 0000ff17e9d5410
<<< 0010d901090254e
connected to Type4Tag ATQ=0400 SAK=20 UID=08f6a0c9 ATS=0578807002
parse ndef message at offset 0
parsed nfc.ndef.
ndef message complete at offset 16
RFConfiguration command with timeout 100 ms
>>> 0000ff04fcd4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
>>> 0000ff00ff00
Unlocked phone
polling for NFC-A technology
InListPassiveTarget command with timeout 1000 ms
>>> 0000ff04fcd44a0
<<< 0000ff00ff00
<<< 0000ff11efd54b0
found NFC-A target @ 106 kbps
found target TTA br=106 cfg=040060 uid=082e390c ats=0578807002
init TTA br=106 cfg=040060 uid=082e390c ats=0578807002
select file
>>> 00a4040007d2760
RFConfiguration command with timeout 100 ms
>>> 0000ff06fad4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
RFConfiguration command with timeout 100 ms
>>> 0000ff04fcd4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
InDataExchange command with timeout 2550 ms
>>> 0000ff10f0d4400
<<< 0000ff00ff00
<<< 0000ff03fdd5410
[PN53x Error 0x01] Time out, the Target has not answered
while reading ndef: TimeoutError(None)
connected to Type4Tag ATQ=0400 SAK=60 UID=082e390c ATS=0578807002
RFConfiguration command with timeout 100 ms
>>> 0000ff04fcd4320
<<< 0000ff00ff00
<<< 0000ff02fed533f800
>>> 0000ff00ff00
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- nfcpy Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- yeshwanth
- Solved:
- Last query:
- Last reply: