USB , SCSI , LUN … file ...disk...How does it all fit together?
-
I can read /google each one of these devices definitions / description and have some understanding how they work alone. The question is – how do they fit together? I have a Arduino Due with “native” USB port. I can configure the port for USB mouse, keyboard, web cam or flash drive, no problem. I want to write to flash drive and that is where I am not so sure how USB / SCSI LUN #0 - the only device on the USB bus - interacts with disk / file processing I got as far as “mounting” drive at LUN #0 , but from there I am lost. For example I can check if the “drive “ is mounted but the results are intermittent and most of the time the process just stops. And without real debugger, I am stuck. I need to better understand how it all works together to be able to follow the code manually. Basically – does USB /SCSI LUN #0 id translates into “disk #0 “/ USB device #1? and is there a timing dependency between “working” with file / disk and USB? Can anybody help me with understanding of how all this hardware / software interacts? Thanks for your time. Vaclav