Problem with llcp-test-client.py

Asked by Josan Garrido on 2015-09-02

Hello!

I'm trying to pass some tests of nfc forum and I'm having several problem when I use this function, for example: in the tests number 3.1.1.5 of Logical Link Control (tests cases). In the step number 11 (IUT to LT) an error occurs. My setup is as below:

$ python examples/llcp-test-client.py -t 2 --cl-echo 17 --mode 'i' --miu 128 --lto 1000 --bitrate 106 -d nfc.clf --device usb:054c:06c1

Then in my test case result I can see that in the step 11 (IUT to LT) where the value of SAP iut, cl-in-dest should be 17 (I think that the value of SAP iut, cl-in-dest should be in the range 11h-1Fh) the value is (0000)b.

I don't know what is the problem. But the SAP iut in other tests cases is also (0000)b when I'm sending 17, the value of SAP iut should be (010001)b.

Could anyone help me?

Thanks for your answer. Best wishes!

Question information

Language:
English Edit question
Status:
Solved
For:
nfcpy Edit question
Assignee:
No assignee Edit question
Solved by:
Stephen Tiedemann
Solved:
2015-09-09
Last query:
2015-09-09
Last reply:
2015-09-03

Please note that llcp-test-client.py is NOT an implementation of NFC Forum test cases.

The pair of llcp-test-client.py and llcp-test-server.py has been created and used to validate the LLCP specification before it got approved and published. The programs can still be used to test an implementation but the llcp-test-client expects an llcp-test-server like implementation with the echo server running on the peer device. See https://android.googlesource.com/platform/packages/apps/Nfc/+/master/src/com/android/nfc/echoserver/EchoServer.java for an Android implementation of the server side.

Josan Garrido (josan-niko) said : #2

Thank you so much Stephen. Now, I can understand this problem better.

Josan Garrido (josan-niko) said : #3

Thanks Stephen Tiedemann, that solved my question.