Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Option to create a map of pyboard serial numbers to comport & mounted drive.
Example content saved to
%USERPROFILE%\.upytester-map.yaml
Then run
upytester
withPYBOARD_CONFIG_FILE
environment variable:WARNING:
upytester
assumes the map you've given is correct, if it is incorrect then files may be synchronised to a USB stick, or another drive.Also, if 2 pyboards are connected in reverse order, then you will end up stimulating the wrong board.
What should these values be?
To get the above information from Windows:
View
>Devices by Connection
<your computer>
ACPI x64-based PC
Microsoft ACPI-Compliant System
PCI Express Root Complex
Intel(R) USB 3.1 eXtensible Host Controller -1.10 (Microsoft)
USB Root Hub (USB 3.0)
USB Composite Device
It's also likely you'll find more than one
USB Composite Device
.The pyboards are a composite containing a Serial interface, and Mass Storage interface.
Serial Number
Right-click on
USB Composite Device
> selectProperties
.Select the
Details
tab > selectDevice instance path
from the drop-down.That attribute's value will be something like
USB\VID_F055&PID_9800\327834873036
, whereby the serial-number is everything after the last\
, in this case:327834873036
comport
That's easy; that's listed in the name of one of the children of the
USB Composite Device
.For example:
USB Serial Device (COM3)
is connected onCOM3
.mountpoint
Simply disconnect, and re-connect your pyboard and observe which drive it's mounted on.
For example, you may see
PYBOARD
mounted onD:\
.WARNING: if you have multiple pyboards, I recommend connecting them to a USB hub, and disconnect the USB hub (not individual pyboards), then re-connect... the order in which the OS mounts the drives should be consistent.
With all the examples above, you would end up with a
%USERPROFILE%\.upytester-map.yaml
file with contents: