Skip to content

[Enhancement] Write dump #35

@Zorakie

Description

@Zorakie

Hi,
This idea is probably one of the more complex ones:

It would be great to log possible read/write actions.

So basically:

  1. Add a Card reader slot support (Quick search and it should be technically possible (https://www.youtube.com/watch?v=rr_JQchpa1Q)
  2. On power up, mount the SD
  3. If the device tries to write something through main (Micro/C) port, redirect it to the SD.
  4. If the device on the USB-A port starts sending some data (HID), create a text file with random name and write the inputs.

That would help us to understand not only if the device is sending some data, but later on, we can remove the SD, put it into PC and find out, what has actually happened.

for MVP:

  1. Fixed size card
  2. Predefined format (FAT32).
  3. On boot, check if card is inserted to enable logging
  4. random name (as pPico does not have clock), only when creating files, prepend "host_" or "valve_" so we know through which end it came (and on PC, we then always can filter by file creation date)

Let's see, I have no idea how hard this would be even with borrowing some existing Pico SD project, and also I am not sure if the limited processing power of Pico would allow it, but anyway, it would be cool :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions