The throughput measurement application allows for measurement of throughput and packet error rate in different scenarios. It exposes a CLI interface for easy test management. Additionally, it supports Bluetooth advertisement with configurable payload length, allowing for measuring performance impact when the multiprotocol solution is used. For measurement purposes, at least two boards running this application are required.
The throughput measurement application provides two CLI interfaces – UART and RTT. The former one uses UART communication and SEGGER J-Link as a USB-UART converter. The latter one uses the SEGGER J-Link RTT transport.
The application automatically creates or joins Thread network on channel 11. CLI commands can be run using a terminal application like PuTTy configured according to the following CLI terminal settings.
The application measures the following parameters.
The application supports the following modes.
Unidirectional – sends packets in one direction trying to saturate the wireless traffic. Ack – sends a packet and waits for a short acknowledgment from the peer before sending the next packet. The ACK timeout value is used to time out waiting for acknowledgment in case it is never received. Echo - sends a packet and waits for echo from te peer before sending the next packet. The ACK timeout value is used to time out waiting for echo in case it is never received.
You can use the following set of commands to configure your tests.
test peer discover
- Discover other boards running the throughput measurement application within same Thread Network.test info
- Display the current configuration of the test.test start
- Start the test. The the result is printed after it is finished.test stop
- Stop the test.test peer select
- Select the peer to participate in the test. The first discovered peer is selected by default.test peer list
- List the discovered peers.test peer results
- Display the results of the last test from the selected peer.test configure ack-timeout
- Set response timeout for ACK and echo mode in milliseconds.test configure count
- Set the number of packets sent during the test.test configure length
- Set the length of packets sent during the test.test configure mode [unidirectional|echo|ack]
- Set the test mode.Use the following commads to configure BLE advertising during the tests.
ble info
- Display the current Bluetooth configuration.ble adv info
- Display the current Bluetooth advertising configuration.ble adv interval
- Set advertising interval in ms.ble adv size
- Set advertising data length.ble adv start
- Start Bluetooth advertising.ble adv stop
- Stop Bluetooth advertising.Commands can be issued on the discovered peers. The command response is then forwarded to the origin of a remote command. This allows for easy test management, especially when the test consists of multiple nodes.
remote <peer_num> <cmd>
` - Send command <cmd> to peer <peer_num>.Example: