pacman: Fix failures when performing simultaneous measurements
This commit fixes an issue where performing measurements on seperate
pacdebuggers fails with `pyftdi.i2c.I2cIOError: No answer from FTDI`.
Currently, the code creates FTDI URLs for each pacdebugger by grabbing
all connected devices with the correct VID:PID and then identifies them
by their bus:address. This apparently can cause issues lower in the
stack, causing communication with the pacdebugger to fail. This commit
changes the code to use an FTDI URL with the serial number included
which unambiguously identifies each pacdebugger.
BUG=b:241540324
TEST=Ran simultaneous measurements on two pacdebuggers a dozen times,
did not encounter any failures.
Change-Id: I9c1187ea35964f15096a22db15e25b89a1ef08e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/3900831
Tested-by: Robert Zieba <robertzieba@google.com>
Auto-Submit: Robert Zieba <robertzieba@google.com>
Commit-Queue: Parker Holloway <jparkerh@google.com>
Reviewed-by: Parker Holloway <jparkerh@google.com>
2 files changed