USB Interaction
USB Device Identification
USB Device ID (VID:PID)
PLT-300A can use USB Vendor ID and USB Product ID to interact with USB devices.
Vendor IDs are controlled by the USB Implementers Forum, while the Product ID is assigned by the device manufacturer.
Example ids:
id: “0x2e8a:0x0003” Raspberry Pi Pico in UF2 bootloader.
id: “0x046d:0xc080” Logitech Gaming Mouse G303.
Using VID:PID, not a USB path, keeps a plan working whichever port the device is plugged into. Define the VID:PID once as a key; see Plan-Wide Keys.
USB Device Paths
PLT-300A uses USB Device Paths in cases where:
Multiple devices of the same type are connected simultaneously.
Port power control is needed.
The VID:PID of the device is unknown or may change.
USB device paths are strings, a sequence of numbers separated by periods. The numbers are port numbers, and the sequence is the path to the target device.
Note
The port numbering below applies to the PLT-300A only. On other PLT
models, such as the PLT-106, path: is not translated: it is the raw
USB topology path (port chain) of the device on that unit’s own USB tree.
It depends on which physical port is used and on any hubs in between.
To find a device’s path on such a model, run a usb detect step with a
timeout: while the device is connected. The step log lists every
device it sees, each with its path. Where you can, identify devices by
VID:PID instead (see Plan-Wide Keys).
PLT-300A USB Port Numbers
Port |
Port Number |
Location |
|---|---|---|
DUT USB-C |
1 |
Rear, left side of DUT area. |
Accessory 1 |
2 |
Rear, bottom-left of Accessories area. |
Accessory 2 |
3 |
Rear, top-left of Accessories area. |
Accessory 3 |
4 |
Rear, bottom-right of Accessories area. |
Accessory 4 |
5 |
Rear, top-right of Accessories area. |
Front Left |
6 |
Front, left connector. |
Front Right |
7 |
Front, right connector. |
Example paths:
path: “1” Device connected to the DUT USB-C port.
path: “2.1” Device on port 1 of a hub connected to the Accessory 1 port.
path: “1.1.1” Device on port 1 of a hub connected to port 1 of a hub connected to the DUT USB-C port.
Tip
At the start of test execution, the DUT USB-C port is powered off. To power on the port, use usb power on.
Commands
See also
USB-CDC
A USB-CDC device shows up as a UART. Use uartCfg for a plain serial device. Use agentCfg for a Test Agent running agentOS: it opens a console session on the agent’s USB-CDC port, and agentExec then runs commands on the agent.
Commands
Examples
Example Projects > SBC-powered PPC > NXP Secure Provisioning SDK
Example Projects > SBC-powered PPC > Segger Flasher Software
See also
USB-NET
A Test Agent connected over USB networking (a USB-Ethernet gadget or
adapter) is also configured with agentCfg. The PLT derives an IPv6
link-local address from the agent’s MAC address. Select the agent with
id: vid:<VID>:<PID>, id: mac:<address>, or
id: vid:<VID>:<PID>:mac:<address> (see
agentCfg ID formats).
Commands
USB-MSC
Commands
Examples
Example Projects > SBC-powered PPC > Nordic nRF Command Line Tools
Example Projects > SBC-powered PPC > NXP Secure Provisioning SDK
See also
USB Roles
Device Role
The PLT-300A can be used to test a DUT in USB Device Role without any extra additions: the PLT-300A acts as the host, with the DUT connected to the Type-C port on the rear of the PLT-300A.
In case the Pogo-Pin Cassette (PPC) contains an additional SBC with which USB interaction from the PLT is required (for example, to update the SBC firmware over USB), the PPC can be equipped with a USB 2.0 or USB 3.0 hub.
Host Role
To test interaction with a DUT in USB Host Role, a USB Peripheral needs to be added to the test fixture, for example by including an USB Device-capable SBC like the Raspberry Pi Zero in the Pogo-Pin Cassette (PPC).
The DUT acts as the host, with the SBC USB Device port connected to the USB Host port of the DUT. The SBC can be controlled from the test plan with a UART connection between the SBC and the PLT.
In case USB interaction from the PLT is required (for example, to update the SBC’s firmware over USB), the PPC should be equipped with a USB hub that allows switching between two different hosts, such as the Microchip USB5807C Hub Controller included in the PLT-300A Breakout Board.
External References
See also