nRF52840 receive USB command under Mass Storage

Hello Everyone,

I search a lot of time but I don't find any solution.

I looking for a solution to send "command" when the nRF52840 have an USB Mass Storage configuration.

We use the SDK 15.3.0 and the mass storage works fine.

I search some information about SCSI command and UFI command but under the SDK, I never find nothing.

So, I don't know if it's possible but I needs some help or some "link" to find the better solution.

Thank you a lot to everyone and I hope that it exist a solution.

Best regards,

Damien

Parents
  • Hello,

    I have not looked into the USB specification for mass storage class; whether there may be some way of sending some (I assume) proprietarty commands while enumerated as a msc device. Assuming that is not possible I see two ways forward:

    - add for instance the cdc (com port) class to device, then you can send commands through a terminal window.
    - create a file name (e.g. my_hidden_commands.txt) that the device can read when updated to check for commands.

    In both the above implementation I would recommend you to swap to the nRF Connect SDK, since the nRF5 SDK is no longer actively devloped on, ref:
    nRF Connect SDK and nRF5 SDK statement 

    Kenneth

  • Hello Kenneth,

    Thank you for your response.

    Yes, I imagine a solution to switch/reset between a USB CDC and a USB Mass Storage...but it's not easy.

    Now, we can't switch to the new nRF Connect SDK but, perhaps, in the future, we will be able to switch, it's a good idea.

    Thank you again. Best regards.

    Damien

Reply Children
Related