The V5 hardware has a USB port that we are now using, which means we needed to add a Hardware Test for it.
The hardware test can now check the USB port. With a keyboard, mouse, memory stick, scanner and network adapter plugged into the test fixture, a new screen shows what was found and whether the port passed. There is nothing to switch on — it tests itself and updates as devices are plugged and unplugged.
If something is wrong it names the part to look at rather than just reporting a failure: the power switch, the connector wiring, or the device itself. It then asks the operator to unplug and replug the adapter once, which checks a connector signal that cannot be tested any other way, and confirms every device comes back afterwards.
USB keyboards and mice also work in the existing keyboard test, which proves the whole path from the device through to the main processor.
Verified on hardware: full ladder to PASS, the remove and refit sequence, individual devices hot-plugged on the hub, and both keyboard and mouse reaching the keyboard test.
The test shows the following information, depending on what is connected to the Port. For each supported (ish) device that is detected, we will show the Vendor and Product ID. Follwing the instructions on the screen produces a Passed or Failed Result. An OTG adapter, a HUB and a Flash Drive are required for the Hardware Test to pass. The detection of these three devices fully tests the USB hardware. If a USB Key Board or Mouse is detected, they can be tested in the Keyboard Test.
F - Flash Test R - RAM Test X - Non-Volatile Ram Test V - Video Test I - IO Test E - Test Encoder H - Hole Detect Test P - Pic18F252 Test U - USB Port Test C - Comm Port Test A - Analog Test G - Port G and H Test T - Set Time & Date B - Burn In Test O - SERCOS Test Q - Return to Previous Menu Enter Command:u
USB Port Test Q - Return to Previous Menu
Role .............. HOST OTG Adapter ....... FITTED VBUS .............. GOOD Switch Fault ...... NO Port .............. CONNECTED Speed ............. HIGH Hub ............... 7 sockets, 5 used 0BDA:5411 Keyboard .......... 045E:082C Mouse ............. 10C4:8108 Flash Drive ....... 090C:1000 Scanner ........... 1FBB:3600 Ethernet .......... 0B95:1790 Errors ............ 0 Last: 00
Remove the OTG adapter <<<