PTI commands wstk-titlewstk-title ek-dk-titleek-dk-title wpk-titlewpk-title#

Use the PTI commands to set the configuration, control tracing, and dump packet data.

For more information about PTI (including the number of available interfaces and the functions of the different modes) see the PTI overview.

Commands

Description

pti config

Configure PTI or get information about current configuration.

pti disable

Disable PTI.

pti dump

Dump PTI packets.

pti enable

Enable PTI.

pti info

Get PTI stats and current configuration.

pti config#

Configures PTI or retrieves information about the current configuration.

Supported parameters include:

  • interface number: The number of available PTI interfaces, which is either 1 or 2 (depending on the adapter) Valid indices are 0 or 1.

  • mode: Supported modes are onewire, twowire, efruart, and vuart.

  • bitrate: Common PTI bitrates include 3200000, 1600000, and 500000.

You can also:

  • Use the auto subcommand to apply the default configuration based on the connected radio board.

  • Use the --nostore option to prevent the configuration from being stored in persistent memory. By default, manually configured PTI settings are stored.

  • Use the clear subcommand to clear the stored configuration.

  • Run the command without parameters to view the current configuration.

Command Line Syntax

$ pti config
$ pti config auto
$ pti config clear
$ pti config <interfaceIndex> <mode> <bitrate> [--nostore]

Command Line Examples

$ pti config
PTI enabled      : Yes
PTI configured   : Yes

----- PTI config (current)-----
Interface         : 0 
Line protocol     : EFR UART 
Bitrate           : 1600000 

----- PTI config (stored)-----
Interface         : 0 
Line protocol     : EFR UART 
Bitrate           : 1600000 

----- Radio board info -----
Board PN          : BRD4151A
Device family     : EFR32MG1P
Band              : Single
Primary channel   : 2400 MHz  19.5 dBm

$ pti config auto
Autoconfiguring packet trace interface.

$ pti config clear
PTI configuration cleared

$ pti config 0 efruart 1600000
Configuration successful!
Storing PTI configuration...

pti disable#

Disables PTI.

Command Line Syntax

$ pti disable

Command Line Example

$ pti disable
Disabling Packet Trace Interface

pti dump#

Dumps PTI packets. Use the -p option to print the contents of all received packets. If -p is not supplied, statistics are printed once per second. By default, the timeout between packets is 1 second, but you can specify a different timeout in seconds. The command can be exited by sending a newline to the console.

Command Line Syntax

$ pti dump [-p] [timeout]

Command Line Examples

$ pti dump
No timeout specified, defaulting to 1 second.
Will repeat until a new line is received, or no more PTI packets are available.
Available:      0 Dropped:      0 Processed:     19
Available:      0 Dropped:      0 Processed:     30
Available:      0 Dropped:      0 Processed:     41
Available:      0 Dropped:      0 Processed:     52
Available:      0 Dropped:      0 Processed:     63
Available:      0 Dropped:      0 Processed:     74
Available:      0 Dropped:      0 Processed:     85
Available:      0 Dropped:      0 Processed:     96
No more PTI packets available!

$ pti dump -p 10
Will wait for 10 seconds before giving up.
Will repeat until a new line is received, or no more PTI packets are available.
[1:9]  15:00000001C41F478E   : FC 00 06 20 20 20 20 32 31 98 7C FD 00 00 00
[2:8]  15:00000001C420CE30   : FC 00 06 20 20 20 20 32 32 18 7E FD 00 00 00
[3:7]  15:00000001C42254D1   : FC 00 06 20 20 20 20 32 33 1B FD FD 00 00 00
[4:6]  15:00000001C423DB73   : FC 00 06 20 20 20 20 32 34 58 7F FD 00 00 00
[5:5]  15:00000001C4256214   : FC 00 06 20 20 20 20 32 35 5B FC FD 00 00 00
[6:4]  15:00000001C426E8B6   : FC 00 06 20 20 20 20 32 36 DB FE FD 00 00 00
[7:3]  15:00000001C4286F57   : FC 00 06 20 20 20 20 32 37 D8 7D FD 00 00 00
[8:2]  15:00000001C429F5F9   : FC 00 06 20 20 20 20 32 38 F8 7F FD 00 00 00
[9:1]  15:00000001C42B7C9A   : FC 00 06 20 20 20 20 32 39 FB FC FD 00 00 00
[10:0]  15:00000001C42D033B   : FC 00 06 20 20 20 20 33 30 92 7F FD 00 00 00
No more PTI packets available!

pti enable#

Enables PTI.

Command Line Syntax

$ pti enable

Command Line Example

$ pti enable
Enabling Packet Trace Interface

pti info#

Retrieves PTI statistics and the current mode.

Command Line Syntax

$ pti info

Command Line Example

$ pti info
------ Packet Trace Interface Status ------
PTI mode                  : EFR UART
Packets available         : 85
Packets received          : 85
Packets dropped (no space): 0
Packets dropped (errors)  : 0
Lifetime received         : 85
Lifetime dropped          : 0
UART overrun errors : 0
UART framing errors : 0