Skip to content

Navigation Menu

Sign in
Sign up

Usage of NetworkUSBMassStorage #1673

panicking started this conversation in General
Discussion options

Hi all

I did not find an example in how use NetworkUSBMassStorage in pytest. I mean how can wait for the device appear after power the hub for example and write a file to it. Where I can find some documentation?

You must be logged in to vote

Replies: 1 comment

Comment options

The USBStorageDriver uses the NetworkUSBMassStorage resource. Use its write_files()/write_image(), see https://github.com/labgrid-project/labgrid/blob/master/labgrid/driver/usbstoragedriver.py. These methods wait for the medium before interacting with the storage.

Note that it only makes sense to use these resources if you have some muxing device that allows switching the SD card or USB storage between your exporter host and DUT: see USBSDMuxDevice, USBSDWireDevice, LXAUSBMux.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /