AnsweredAssumed Answered

What's Peer-to-Peer mode speed (Throughput) ?

Question asked by Gytis Kazlauskas on Oct 20, 2017

Hello,

 

I am running separately two NfcrdlibEx3_NFCForum examples on two PN7462 boards.

 

First board Server (NfcrdlibEx3_NFCForum.h):

 

      #define ACTIVE_MODE

      #define TARGET_MODE

      #define SNEP_SERVER

 

Second board Client (NfcrdlibEx3_NFCForum.h):

 

     #define SNEP_CLIENT

     #define INITIATOR_MODE

     #define ACTIVE_MODE

 

I want to count what's the throughput(speed) of data send from client to server with PUT. To count that I am using timer, which I turn after phnpSnep_Put was successful and start counting how many times Put request was successful in 5 seconds.

 

Timer functions:

phhalTimer_Init();

phhalTimer_RequestTimer(E_TUNIT_SECS, &Counter);

phhalTimer_Configure(Counter, 5, %phTimer_CallBack);

phhalTimer_Start(Counter, E_TIMER_SINGLE_SHOT);

 

After 5seconds I get that around 30times it was successful and I am sending 8bytes data, which is really low.

 

(30times*8bytessend)/5seconds = 48bytes/s

 

NFC Bit rates:

 

            106kbits/s  ----->   13250bytes/s 

            212kbits/s ----->    26500bytes/s

            424kbits/s ----->    53000bytes/s

 

 

 

 

I also tried to count data throughput by setting the timer for 10seconds and count how much successful PUT request was send from client to server. And I make a table of the results

 

Data rate / Data size106 kbits/s212 kbits/s424 kbits/s
8 Bytes45.6 Bps46.4 Bps48 Bps
16 Bytes92.8 Bps92.8 Bps 96 Bps
64 Bytes364.8 Bps364.8 Bps 384 Bps
128 Bytes704 Bps716.8 Bps755.2 Bps
256 Bytes819.2 Bps844.8 Bps870.4 Bps
512 Bytes1.485 kBps1.587 kBps1.6896 kBps
1024 Bytes2.56 kBps2.867 kBps

3.174 kBps

Thank you in advanced, the code for counting and setting the timer of client you can find in attachment.

 

I am using:

I am using PN7462 two boards (these kits: https://www.digikey.com/catalog/en/partgroup/pn7360-pn7362-pn7462-nfc-controller-development-kit/60235)

PN7462AU FW & SW Examples Full Version - v05_02_01

MCUXpresso IDE v10.0.2 [Build 411] [2017-07-11]

 

Best regards,

 

Gytis

Original Attachment has been moved to: NfcrdlibEx3_NFCForum.c.zip

Outcomes