cecio / USBvalve

Expose USB activity on the fly
MIT License
1.24k stars 44 forks source link

[Question] File read attempt filename #41

Closed IAmOrion closed 6 months ago

IAmOrion commented 6 months ago

Does this show the file name that was attempted to be accessed?

As an example, I have a device that auto updates from an attached FAT32 USB Drive assuming the correct file is placed at the root.

If I was to plug this device into that USB connection, would the screen show, as an example, that "DEVICE_UPDATE.IMG" was attempted to be read?

Tz1rf commented 6 months ago

@IAmOrion

No currently the device cannot show that on the display. It would likely show !! mass storage, explanation points meaning the device is doing something that is unexpected. To see that information you would have to use the debugger on the serial port

IAmOrion commented 6 months ago

@IAmOrion

No currently the device cannot show that on the display. It would likely show !! mass storage, explanation points meaning the device is doing something that is unexpected. To see that information you would have to use the debugger on the serial port

ahh ok, but the debugger would show the file request then? (possibly)

Tz1rf commented 6 months ago

My apologies, the display should also show that data was being transmitted, which is the indication that the USB Drive is trying to read or write data automatically. It just won't show specifics about this. Yes the debugger possibly would show the file request.

cecio commented 6 months ago

Unfortunaltely this is not possible: the USB protocol just read and write data blocks, the files operations are done at Operating System level, so there is no way on the USBvalve to know the requested file: this is done by the operating system.