Packet Error Rate Tester

This is a simple example where a normal coordinator waits to receive 1000 packets. This example is useful for testing the effect of environment on communications reliability. It's also handy to measure system current consumption during continuous transmit/receive operation.

Program the coordinator with the configuration "PER Tester - Coordinator" project and start the Coordinator. You will see:

Now load the router with "PER Tester - Router" and start the router.



The router will now send 1000 messages very quickly. The Router will toggle LED 1 each time a message is sent. The router will also wait until it receives an AF_DATA_CONFIRM before sending the next packet. For higher throughput you could disable this wait, but then you would want to verify in your application that packets were successfully sent.

The coordinator will toggle LED0 when each message is received. On the coordinator you can also press the button to display how many packets have been received. Once all 1000 messages are received, the coordinator will reset its counter and be ready for another set of 1000.

History
This example has been available since Version 1880.

