spectraphilic / wasp_sketches

Waspmote sketches develoded by our group
1 stars 0 forks source link

SD issues #67

Open jdavid opened 5 years ago

jdavid commented 5 years ago

We rely on the SD heavily for the program to work properly, to store the frames that will be sent later, to log events for later analysis, to keep the time in case the RTC is reset.

We have seen several SD related issues which appear in some hardware/usage combination. The purpose of this issue is to narrow down exactly the combination that makes the SD to behave funny.

Ideally the purpose of this issue is to identify what hardware combination makes the SD to behave funny, so we can handle it appropriately, e.g. avoiding using the SD and xxx at the same time.

Since we're logging a bit everywhere, the initial idea was to start the SD early and stop it as late as possible. Also starting/stopping the SD takes a bit of time, so the idea was to keep it ON most of the time while the mote is awake. But since we have some conflicts we will need to switch it off/on like we do with the GPS. It would be nice to understand better what's going on.

The SD uses SPI, in theory it's not related to any of the protocols used by sensors, network modules, and gps.