-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hi,
This idea is probably one of the more complex ones:
It would be great to log possible read/write actions.
So basically:
- Add a Card reader slot support (Quick search and it should be technically possible (https://www.youtube.com/watch?v=rr_JQchpa1Q)
- On power up, mount the SD
- If the device tries to write something through main (Micro/C) port, redirect it to the SD.
- 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:
- Fixed size card
- Predefined format (FAT32).
- On boot, check if card is inserted to enable logging
- 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 :)
cecio
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request